Methods summary
public static
boolean
|
#
has( string $key )
Determine if a configuration item or file exists.
Determine if a configuration item or file exists.
$exists = Config::has('session');
$exists = Config::has('application.timezone');
Parameters
Returns
boolean
|
public static
array
|
#
get( string $key, mixed $default = null )
Get a configuration item.
Get a configuration item.
If no item is requested, the entire configuration array will be returned.
$session = Config::get('session');
$name = Config::get('admin::names.first');
$timezone = Config::get('application.timezone');
Parameters
- $key
string $key
- $default
mixed $default
Returns
array
|
public static
|
#
set( string $key, mixed $value )
Set a configuration item's value.
Set a configuration item's value.
Config::set('session', $array);
Config::set('admin::names.first', 'Taylor');
Config::set('application.timezone', 'UTC');
Parameters
- $key
string $key
- $value
mixed $value
|
protected static
array
|
#
parse( string $key )
Parse a key and return its bundle, file, and key segments.
Parse a key and return its bundle, file, and key segments.
Configuration items are named using the {bundle}::{file}.{item}
convention.
Parameters
Returns
array
|
public static
boolean
|
#
load( string $bundle, string $file )
Load all of the configuration items from a configuration file.
Load all of the configuration items from a configuration file.
Parameters
- $bundle
string $bundle
- $file
string $file
Returns
boolean
|
public static
array
|
#
file( string $bundle, string $file )
Load the configuration items from a configuration file.
Load the configuration items from a configuration file.
Parameters
- $bundle
string $bundle
- $file
string $file
Returns
array
|
protected static
array
|
#
paths( string $bundle )
Get the array of configuration paths that should be searched for a
bundle.
Get the array of configuration paths that should be searched for a
bundle.
Parameters
Returns
array
|