class Context implements ContextualAttribute (View source)

Methods

__construct(string $key, mixed $default = null, bool $hidden = false)

Create a new attribute instance.

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

Resolve the context value.

Details

__construct(string $key, mixed $default = null, bool $hidden = false)

Create a new attribute instance.

Parameters

string $key
mixed $default
bool $hidden

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

Resolve the context value.

Parameters

Context $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.