trait CollectsResources (View source)
| mixed | collectResource(mixed $resource)
Map the given collection resource into its individual resources. | |
| string|null | collects()
Get the resource that this resource collects. | |
| int | jsonOptions()
Get the JSON serialization options that should be applied to the resource response. | |
| Traversable | getIterator()
Get an iterator for the resource collection. |
Map the given collection resource into its individual resources.
Get the resource that this resource collects.
Get the JSON serialization options that should be applied to the resource response.
Get an iterator for the resource collection.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Http/Resources/CollectsResources.html