AlwaysProp
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.
from
ResolvesCallables
bool
useAsCallable(mixed $value)
Determine if the given value is callable, but not a string.
from
ResolvesCallables
__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.
in
ResolvesCallables at line 22
protected bool
useAsCallable(mixed $value)
Determine if the given value is callable, but not a string.
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.
at line 31
mixed
__invoke()
Resolve the property value.