Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

BE VERY CAREFUL WITH THIS UPGRADE!!!

Compare
Choose a tag to compare
@d8vjork d8vjork released this 21 Apr 17:44
· 95 commits to master since this release
b83eb61

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 are included following JSON:API specs
  • Removed usage of Auth facade (replaced by Gate), allowing anonymous authorisations

Removed