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.

Parameters

string $key

Return Value

bool

mixed get(array|string $key, mixed $default = null)

Get the specified configuration value.

Parameters

array|string $key
mixed $default

Return Value

mixed

array all()

Get all of the configuration items for the application.

Return Value

array

void set(array|string $key, mixed $value = null)

Set a given configuration value.

Parameters

array|string $key
mixed $value

Return Value

void

void prepend(string $key, mixed $value)

Prepend a value onto an array configuration value.

Parameters

string $key
mixed $value

Return Value

void

void push(string $key, mixed $value)

Push a value onto an array configuration value.

Parameters

string $key
mixed $value

Return Value

void

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.