Repository
class Repository implements ArrayAccess, Repository (View source)
Properties
| protected array | $items | All of the configuration items. |
Methods
Create a new configuration repository.
Determine if the given configuration value exists.
Get the specified configuration value.
Get many configuration values.
Set a given configuration value.
Prepend a value onto an array configuration value.
Push a value onto an array configuration value.
Get all of the configuration items for the application.
Determine if the given configuration option exists.
Get a configuration option.
Set a configuration option.
Unset a configuration option.
Details
void
__construct(array $items = [])
Create a new configuration repository.
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
getMany(array $keys)
Get many configuration values.
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.
array
all()
Get all of the configuration items for the application.
bool
offsetExists(string $key)
Determine if the given configuration option exists.
mixed
offsetGet(string $key)
Get a configuration option.
void
offsetSet(string $key, mixed $value)
Set a configuration option.
void
offsetUnset(string $key)
Unset a configuration option.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.