API resource
Also written: resource, ProductResource
A class whose toArray() method decides exactly which fields of a model appear in the API's JSON. This stops columns you add later from leaking out.
Also written: resource, ProductResource
A class whose toArray() method decides exactly which fields of a model appear in the API's JSON. This stops columns you add later from leaking out.