More improvements to the configuration class.
This commit is contained in:
@@ -42,9 +42,7 @@ class Config {
|
|||||||
|
|
||||||
static::load($module, $file);
|
static::load($module, $file);
|
||||||
|
|
||||||
if (is_null($key)) return static::$items[$module][$file];
|
return (is_null($key)) ? static::$items[$module][$file] : Arr::get(static::$items[$module][$file], $key, $default);
|
||||||
|
|
||||||
return Arr::get(static::$items[$module][$file], $key, $default);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user