File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,19 @@ All notable changes to this project will be documented in this file. This projec
17
17
- [ #85 ] ( https://github.com/laravel-json-api/laravel/issues/85 ) When running an application with debug mode turned on,
18
18
the default JSON: API error object for an exception will now contain detailed exception information, including the
19
19
stack trace, in the object's ` meta ` member.
20
+ - [ #103 ] ( https://github.com/laravel-json-api/laravel/issues/103 ) Can now fully customise attribute serialization to JSON
21
+ using the ` extractUsing() ` callback. This receives the model, column name and value. This is useful if the developer
22
+ needs to control the serialization of a few fields on their schema. However, the recommendation is to use a resource
23
+ class for complete control over the serialization of a model to a JSON: API resource.
20
24
21
25
### Changed
22
26
23
27
- Minimum Laravel version is now ` 8.30 ` . This change was required to use the ` $stopOnFirstFailure ` property on Laravel's
24
28
` FormRequest ` class.
29
+ - Schema classes no longer automatically sort their fields by name when iterating over them. This change was made to
30
+ give the developer full control over the order of fields (particularly as this order affects the order in which fields
31
+ are listed when serialized to a JSON: API resource). Developers can list fields in name order if that is the preferred
32
+ order.
25
33
- Removed the ` LaravelJsonApi\Spec\UnexpectedDocumentException ` which was thrown if there was a failure when decoding
26
34
request JSON content before parsing it for compliance with the JSON: API specification. A ` JsonApiException ` will now
27
35
be thrown instead.
Original file line number Diff line number Diff line change 26
26
"php" : " ^7.4|^8.0" ,
27
27
"ext-json" : " *" ,
28
28
"laravel-json-api/core" : " ^1.0.0-beta.5" ,
29
- "laravel-json-api/eloquent" : " ^1.0.0-beta.5 " ,
29
+ "laravel-json-api/eloquent" : " ^1.0.0-beta.6 " ,
30
30
"laravel-json-api/encoder-neomerx" : " ^1.0.0-beta.1" ,
31
31
"laravel-json-api/exceptions" : " ^1.0.0-beta.4" ,
32
32
"laravel-json-api/spec" : " ^1.0.0-beta.2" ,
You can’t perform that action at this time.
0 commit comments