trait DelegatesToResource (View source)
ForwardsCalls |
mixed | forwardCallTo(mixed $object, string $method, array $parameters) Forward a method call to the given object. | from ForwardsCalls |
static void | throwBadMethodCallException(string $method) Throw a bad method call exception for the given method. | from ForwardsCalls |
mixed | getRouteKey() Get the value of the resource's route key. | |
string | getRouteKeyName() Get the route key for the resource. | |
void | resolveRouteBinding(mixed $value, string|null $field = null) Retrieve the model for a bound value. | |
void | resolveChildRouteBinding(string $childType, mixed $value, string|null $field = null) Retrieve the model for a bound value. | |
bool | offsetExists(mixed $offset) Determine if the given attribute exists. | |
mixed | offsetGet(mixed $offset) Get the value for a given offset. | |
void | offsetSet(mixed $offset, mixed $value) Set the value for a given offset. | |
void | offsetUnset(mixed $offset) Unset the value for a given offset. | |
bool | __isset(string $key) Determine if an attribute exists on the resource. | |
void | __unset(string $key) Unset an attribute on the resource. | |
mixed | __get(string $key) Dynamically get properties from the underlying resource. | |
mixed | __call(string $method, array $parameters) Dynamically pass method calls to the underlying resource. |
Forward a method call to the given object.
Throw a bad method call exception for the given method.
Get the value of the resource's route key.
Get the route key for the resource.
Retrieve the model for a bound value.
Retrieve the model for a bound value.
Determine if the given attribute exists.
Get the value for a given offset.
Set the value for a given offset.
Unset the value for a given offset.
Determine if an attribute exists on the resource.
Unset an attribute on the resource.
Dynamically get properties from the underlying resource.
Dynamically pass method calls to the underlying resource.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Http/Resources/DelegatesToResource.html