Releases: open-southeners/laravel-apiable
Releases · open-southeners/laravel-apiable
3.7.0
Added
include_pivot_attributes
config option to optionally add pivot attributes to the relationships data (default to false to match previous functionality). Pivot data will be added aspivot_name_pivot_attribute
(remember if you're usingas
it will use this one: https://laravel.com/docs/10.x/eloquent-relationships#customizing-the-pivot-attribute-name).
3.6.1
Fixed
- Added status code (401) to unauthorised responses
3.6.0
Fixed
- Inconsistent behaviour with
Apiable::toJsonApi()
returning false sometimes, now returns an API resource/collection all the time (might be a breakchange therefore this was minor release)
3.5.2
Fixed
JsonApiResponse::conditionallyLoadResults()
method doesn't work as expected
3.5.1
Fixed
- Exceptions handler using
apiable()->jsonApiRenderable()
now returns thrown exception headers
3.5.0
Added
- Backend now returns properly the
Content-Type=application/vnd.api+json
response header
3.4.2
Fixed
- Filters with negative values like
filter[attr]=0
won't be filtered out
3.4.1
Fixed
Apiable::jsonApiRenderable
method, Handler missing import of Symfony's HttpException
3.4.0
Changed
Apiable::jsonApiRenderable
now accepts 2 arguments: Throwable exception & second a bool nullable withTrace, error handling redesign to properly match JSON:API & Laravel.
3.3.1
Added
JsonApiResponse::conditionallyLoadResults
to manage adding viewable query or not to the response