trait
Illuminate
/
Http
/
Resources
/
DelegatesToResource
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
DelegatesToResource
Methods
public
getRouteKey ( ) : mixed
Get the value of the resource's route key.
public
getRouteKeyName ( ) : string
Get the route key for the resource.
public
resolveRouteBinding ( $value , $field ) : void
Retrieve the model for a bound value.
Parameters
- $value mixed
- $field string|null
public
resolveChildRouteBinding ( $childType , $value , $field ) : void
Retrieve the model for a bound value.
Parameters
- $childType string
- $value mixed
- $field string|null
public
offsetExists ( $offset ) : bool
Determine if the given attribute exists.
Parameters
- $offset mixed
public
offsetGet ( $offset ) : mixed
Get the value for a given offset.
Parameters
- $offset mixed
public
offsetSet ( $offset , $value ) : void
Set the value for a given offset.
Parameters
- $offset mixed
- $value mixed
public
offsetUnset ( $offset ) : void
Unset the value for a given offset.
Parameters
- $offset mixed
public
__isset ( $key ) : bool
Determine if an attribute exists on the resource.
Parameters
- $key string
public
__unset ( $key ) : void
Unset an attribute on the resource.
Parameters
- $key string
public
__get ( $key ) : mixed
Dynamically get properties from the underlying resource.
Parameters
- $key string
public
__call ( $method , $parameters ) : mixed
Dynamically pass method calls to the underlying resource.
Parameters
- $method string
- $parameters array