Reading Resources
This page details the configuration of GET requests to a single resource.
If you wish to enable single resource reading then add read to the enabled array within the model declaration.
The usual Security configurations are available to control access to reading a resource.
You can then specify the resource (Laravel HTTP Resource) class that you wish to be used in order to return the results for this resource. This is only required if you wish to use a resource, and that resource is different to that which is declared on the resource overall.
Routing
Your route will be defined with the name {your-bakery-slug}.{resource}.read
Last updated
Was this helpful?