Commit 38da9f47 by Taylor Otwell

added bundle option

parent ebcf34e3
...@@ -409,6 +409,20 @@ class Bundle { ...@@ -409,6 +409,20 @@ class Bundle {
} }
/** /**
* Get an option for a given bundle.
*
* @param string $bundle
* @param string $option
* @return mixed
*/
public static function option($bundle, $option)
{
$bundle = static::get($bundle);
if ( ! is_null($bundle)) return array_get($bundle, $option);
}
/**
* Get all of the installed bundles for the application. * Get all of the installed bundles for the application.
* *
* @return array * @return array
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment