This repository was archived by the owner on Feb 14, 2023. It is now read-only.
BE VERY CAREFUL WITH THIS UPGRADE!!!
Added
Collection::paginate()
macro with params and config for maximum per page results- Config file (json-api.php) with some configurable behavior of the package
- 3rd parameter to
JsonApiCollection
class constructor for customise the resource that collects JsonApiResource::withAttributes()
method for add additional attributes from child resources- Laravel 7 compatibility
Changed
- Now JsonApiCollection constructor ONLY accepts Laravel collections and arrays of models
includes
now areincluded
following JSON:API specs- Removed usage of Auth facade (replaced by Gate), allowing anonymous authorisations
Removed
- Pagination refresh on JsonApiCollection
- Composer suggested package: spatie/laravel-json-api-paginate
- Drop compatibility with unsupported Laravel 5.x versions