Closed lindyhopchris closed 1 year ago
These are the only breaking changes at the moment - though I'm not planning any more. It's just a major version bump for new version of Laravel plus dropping PHP 7.4 and 8.0.
8.1
.laravel-json-api/cursor-pagination
package, you now need to passed the schema's id
field to the paginator's make()
method. I.e. use CursorPagination::make($this->id())
Accept
header for a delete resource request. Previously there was no checking of the Accept
media type, so anything could be sent. This is incorrect as the JSON:API specification shows the Accept
header as application/vnd.api+json
for delete resource requests.Released as 3.0.0
. To upgrade:
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
To upgrade to Laravel 10 (before this package is tagged for 10), use the following: