Repository
interface Repository
Methods
Determine if the given configuration value exists.
Get the specified configuration value.
Get the specified string configuration value.
Get the specified integer configuration value.
Get the specified float configuration value.
Get the specified boolean configuration value.
Get the specified array configuration value.
Get all of the configuration items for the application.
Set a given configuration value.
Prepend a value onto an array configuration value.
Push a value onto an array configuration value.
Details
at line 15
bool
has(string $key)
Determine if the given configuration value exists.
at line 20
mixed
get(array|string $key, mixed $default = null)
Get the specified configuration value.
at line 28
string
string(string $key, mixed $default = null)
Get the specified string configuration value.
at line 36
int
integer(string $key, mixed $default = null)
Get the specified integer configuration value.
at line 44
float
float(string $key, mixed $default = null)
Get the specified float configuration value.
at line 52
bool
boolean(string $key, mixed $default = null)
Get the specified boolean configuration value.
at line 61
array
array(string $key, mixed $default = null)
Get the specified array configuration value.
at line 66
array
all()
Get all of the configuration items for the application.
at line 75
void
set(array|string $key, mixed $value = null)
Set a given configuration value.
Boot or tests only. The config repository is a process-global singleton; per-request mutation races across coroutines and affects every concurrent request.
at line 84
void
prepend(string $key, mixed $value)
Prepend a value onto an array configuration value.
Boot or tests only. The config repository is a process-global singleton; per-request mutation races across coroutines and affects every concurrent request.
at line 93
void
push(string $key, mixed $value)
Push a value onto an array configuration value.
Boot or tests only. The config repository is a process-global singleton; per-request mutation races across coroutines and affects every concurrent request.