json-api
json-api copied to clipboard
Default include relationship
How to default a relationship without requesting?
this package doesn’t seem to return default relationship even after setup like spatie’s doc https://spatie.be/docs/laravel-query-builder/v5/features/including-relationships#content-default-includes
An endpoint MAY return resources related to the primary data by default.
https://jsonapi.org/format/#fetching-includes
This has already been requested before and @timacdonald already has a plan for this.