v5.0.0
Upgrading
composer require laravel-json-api/laravel --no-update
composer require laravel-json-api/testing --dev --no-update
composer up "laravel-json-api/*" cloudcreativity/json-api-testing
Although this is a major release with a breaking change (see below), the vast majority of applications should be able to upgrade without making any changes. You will only need to make a change if you're directly calling the
authorizeResource()
method on a JSON:API HTTP request class.
What's Changed
- feat: support Illuminate\Auth\Access\Response from authorizer by @haddowg in #298
- #70 The authorizer implementation now allows methods to return either
bool
or an Illuminate AuthResponse
. - BREAKING The return type for the
authorizeResource()
method on both resource and query request classes has changed tobool|Response
(where response is the Illuminate Auth response). If you are manually calling this method and relying on the return value being a boolean, this change is breaking. However, the vast majority of applications should be able to upgrade without any changes.
New Contributors
Full Changelog: v4.1.1...v5.0.0