RouteParameter
class RouteParameter implements ExecutionScopedAttribute
Traits
Methods
mixed
extractPropertyValue(mixed $value, string|null $property)
Extract a property path from a contextual value.
__construct(string|null $parameter = 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(RouteParameter $attribute, Container $container, ReflectionParameter $parameter)
Resolve the route parameter.
Details
in
ExtractsPropertyValue at line 16
protected mixed
extractPropertyValue(mixed $value, string|null $property)
Extract a property path from a contextual value.
at line 24
__construct(string|null $parameter = 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.
at line 33
bool
isExecutionScoped()
Determine whether the resolved value belongs to the current execution.
at line 41
static mixed
resolve(RouteParameter $attribute, Container $container, ReflectionParameter $parameter)
Resolve the route parameter.