laravel-json-api/core v4.laravel-json-api/core v4 or v5.8.2.$jsonApi
property on the Document class.8.1.laravel-json-api/neomerx-json-api dependency to ^5.0.1. This fixes a bug related to the top-level
meta member. Previously the encoder added empty meta values to the top-level member, which is incorrect.laravel-json-api/neomerx-json-api dependency to 5.0.laravel-json-api/core dependency to 2.0.jsonapi value on the Document class, which was not setting the cast value.RelationshipDocument no longer merges relationship links with the top-level document links. This is because we
now expect the top-level links provided to the encoder to already have the relationship links merged. The core
package takes care of this in the relationship response classes, while also providing the capability for the developer
to turn off link merging if desired (which is a better implementation). This change is considered non-breaking because
the core package dependency has been upgraded and there were existing bugs in the links merging implementation within
the RelationshipDocument class. I.e. it would fail if either of the self or related links were missing, or if the
relationship was hidden - so removing this merging fixes bugs in the implementation.Initial stable release, with no changes since 1.0.0-beta.1.
withIdentifiers() method
and replaces it with the withToOne() and withToMany() methods.laravel-json-api/neomerx-json-api, a fork of neomerx/json-api. This was required
because of a bug affecting empty to-many include paths.
Although a PR was sent to the Neomerx repository, there has been no activity in that repository for almost a year. The
fork will be maintained for use in Laravel JSON:API, but we will switch back to using the Neomerx package if it is
maintained in the future.getSelfLink() method, which was not passing the request through to the JSON:API resource object.withRequest method on the encoder, allows a request to be passed into the encoding process. This is then
provided to each JsonApiResource object when it is being encoded. This change was made to bring the resource into
line with Laravel's Eloquent resource, which is passed the request when serializing models. (Changes to classes in
the Schema namespace to implement this are considered non-breaking, as they are internal classes.)JsonApiResource class.composer.json.Initial release.
How can I help you explore Laravel packages today?