AlwaysProp
class AlwaysProp
Traits
Properties
| protected mixed | $value | The property value. |
Methods
Invoke a value whose public contract guarantees it is callable.
Call the given value if callable and inject its dependencies.
Determine if the given value is callable, but not a string.
Create a new always property instance. Always properties are included in every Inertia response, even during partial reloads when only specific props are requested.
Resolve the property value.
Details
in
ResolvesCallables at line 14
protected mixed
invokeCallable(callable $value)
Invoke a value whose public contract guarantees it is callable.
in
ResolvesCallables at line 22
protected mixed
resolveCallable(mixed $value)
Call the given value if callable and inject its dependencies.
in
ResolvesCallables at line 30
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.