Skip to content

Glossary: Laravel

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.

Where the book teaches it

Related terms

APIJSONModel