CurrentUser
class CurrentUser extends Authenticated
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.
from
Authenticated
bool
isExecutionScoped()
Determine whether the resolved value belongs to the current execution.
from
Authenticated
static mixed
from
Authenticated
Details
in
ExtractsPropertyValue at line 16
protected mixed
extractPropertyValue(mixed $value, string|null $property)
Extract a property path from a contextual value.
in
Authenticated 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.
in
Authenticated at line 33
bool
isExecutionScoped()
Determine whether the resolved value belongs to the current execution.
in
Authenticated at line 41
static mixed
resolve(Authenticated $attribute, Container $container)
Resolve the currently authenticated user.