Repository
interface Repository (View source)
Methods
bool | has(string $key) Determine if the given configuration value exists. | |
mixed | get(array|string $key, mixed $default = null) Get the specified configuration value. | |
array | all() Get all of the configuration items for the application. | |
void | set(array|string $key, mixed $value = null) Set a given configuration value. | |
void | prepend(string $key, mixed $value) Prepend a value onto an array configuration value. | |
void | push(string $key, mixed $value) Push a value onto an array configuration value. |
Details
bool has(string $key)
Determine if the given configuration value exists.
mixed get(array|string $key, mixed $default = null)
Get the specified configuration value.
array all()
Get all of the configuration items for the application.
void set(array|string $key, mixed $value = null)
Set a given configuration value.
void prepend(string $key, mixed $value)
Prepend a value onto an array configuration value.
void push(string $key, mixed $value)
Push a value onto an array configuration value.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Contracts/Config/Repository.html