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

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(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.

Parameters

string|null $parameter
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(RouteParameter $attribute, Container $container, ReflectionParameter $parameter)

Resolve the route parameter.

Parameters

RouteParameter $attribute
Container $container
ReflectionParameter $parameter

Return Value

mixed