trait
Illuminate
/
Http
/
Resources
/
CollectsResources
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
CollectsResources
Methods
protected
collectResource ( $resource ) : mixed
Map the given collection resource into its individual resources.
Parameters
- $resource mixed
protected
collects ( ) : string|null
Get the resource that this resource collects.
public
jsonOptions ( ) : int
Get the JSON serialization options that should be applied to the resource response.