class AlwaysProp

Traits

Properties

protected mixed $value

The property value.

Methods

mixed
resolveCallable(mixed $value)

Call the given value if callable and inject its dependencies.

bool
useAsCallable(mixed $value)

Determine if the given value is callable, but not a string.

__construct(mixed $value)

Create a new always property instance. Always properties are included in every Inertia response, even during partial reloads when only specific props are requested.

mixed
__invoke()

Resolve the property value.

Details

in ResolvesCallables at line 14
protected mixed resolveCallable(mixed $value)

Call the given value if callable and inject its dependencies.

Parameters

mixed $value

Return Value

mixed

in ResolvesCallables at line 22
protected bool useAsCallable(mixed $value)

Determine if the given value is callable, but not a string.

Parameters

mixed $value

Return Value

bool

at line 23
__construct(mixed $value)

Create a new always property instance. Always properties are included in every Inertia response, even during partial reloads when only specific props are requested.

Parameters

mixed $value

at line 31
mixed __invoke()

Resolve the property value.

Return Value

mixed