class Config implements ContextualAttribute (View source)

Methods

__construct(string $key, mixed $default = null)

Create a new class instance.

static mixed
resolve(Config $attribute, Container $container)

Resolve the configuration value.

Details

__construct(string $key, mixed $default = null)

Create a new class instance.

Parameters

string $key
mixed $default

static mixed resolve(Config $attribute, Container $container)

Resolve the configuration value.

Parameters

Config $attribute
Container $container

Return Value

mixed

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.