class Authenticated implements ExecutionScopedAttribute

Traits

Methods

mixed
extractPropertyValue(mixed $value, string|null $property)

Extract a property path from a contextual value.

__construct(UnitEnum|string|null $guard = null, string|null $property = null)

Create a new class instance.

bool
isExecutionScoped()

Determine whether the resolved value belongs to the current execution.

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

Resolve the currently authenticated user.

Details

protected mixed extractPropertyValue(mixed $value, string|null $property)

Extract a property path from a contextual value.

Parameters

mixed $value
string|null $property

Return Value

mixed

Exceptions

BindingResolutionException

at line 24
__construct(UnitEnum|string|null $guard = null, string|null $property = null)

Create a new class instance.

Property paths use data_get() and may invoke object accessors or lazy-load Eloquent relationships.

Parameters

UnitEnum|string|null $guard
string|null $property

at line 33
bool isExecutionScoped()

Determine whether the resolved value belongs to the current execution.

Return Value

bool

at line 41
static mixed resolve(Authenticated $attribute, Container $container)

Resolve the currently authenticated user.

Parameters

Authenticated $attribute
Container $container

Return Value

mixed