Releases: brainstudnl/json-api-resource
Releases · brainstudnl/json-api-resource
v4.3.1
v4.3.0
v4.2.0
v4.1.1
v4.1.0
Release v4.1.0
This release introduces a new way to define resources. It adds four methods to the JsonApiResource that each cover a specific part of a resource. The big difference is that you'll have direct access to the Request in theses methods, as the methods are called only in toArray. This will allow for better/easier access to the specific Request your resource is built for.
It also deprecates the use of the register method, as going forward, using the methods to define your resource is the preferred way. For now, we keep the options to use register, but know that it might be removed in a future release.
What's Changed
- Update laravel pint by @brdv in #25
- Rename CollectionResource to ResourceCollection to better follow Laravel by @brdv in #26
- Add option to define resources by methods by @brdv in #24
- Type getId method as string or int by @brdv in #28
- Allow for empty attributes in response by @brdv in #27
Full Changelog: v4.0.6...v4.1.0
v4.0.6
v4.0.5
v4.0.4
Add Laravel 11 support
What's Changed
Full Changelog: v4.0.2...v4.0.3
Patch 4.0.2: Fixes validation errors
Fixes issue in validation errors where keys were not indexed but named.