Releases: Ark4ne/laravel-json-api
Releases · Ark4ne/laravel-json-api
v1.1.2
v1.1.1
v1.1.0
v1.0.2
Full Changelog: v1.0.1...v1.0.2
v1.0.1
Full Changelog: v1.0.0...v1.0.1
v1.0.0
Release note
v1.0.0
Added
Schematrait implement methodschemaonJsonApiResourceandJsonApiCollectionRelationize::relationshipstatic method which allow to create relation for resource (like :PostResource::relationship(fn() => $this->posts))
Breaking change
Relationship::constructsignature has change for :
public function __construct( protected string $resource, // represent class-string of resource protected Closure $value, // MUST be a closure which return real value protected ?Closure $links = null, protected ?Closure $meta = null )-
JsonApiResourceconstructcan't be overwritedtoAttributesSHOULD return anarray<string, Closure>toRelationshipsMUST return anarray<string, Relationship>
-
JsonApiCollectionconstructcan't be overwrited
-
ResourceabletoArraysecond parameter has been changed fromfalsetotrue, and comportment has been inverted.
-
RelationizeasRelationshiphas been deleted
v0.0.1
v0.0.0
v0.0.0-RC1
test: fix stub for php8.0