File tree 3 files changed +26
-5
lines changed
3 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file. This project adheres to
4
4
[ Semantic Versioning] ( http://semver.org/ ) and [ this changelog format] ( http://keepachangelog.com/ ) .
5
5
6
+ ## [ 1.0.0-beta.2] - 2021-04-20
7
+
8
+ ### Added
9
+
10
+ - [ #65 ] ( https://github.com/laravel-json-api/laravel/issues/65 ) ** BREAKING** The ` fill() ` method on Eloquent fields has
11
+ been updated to receive all the validated data as its third argument. This change was made to allow fields to work out
12
+ the value to fill into the model based on other JSON: API field values. If you have written any custom fields, you will
13
+ need to update the ` fill() ` method on your field class.
14
+ - ** BREAKING** Eloquent attributes now support serializing and filling column values on related objects. This is
15
+ primarily intended for use with the Eloquent ` belongsTo ` , ` hasOne ` , ` hasOneThrough ` and ` morphOne ` relationships that
16
+ have a ` withDefault() ` method. As part of this change, the ` mustExist() ` method was added to the ` Fillable ` interface.
17
+ If you have written any custom fields, you will need to add this method to your field class - it should return ` true `
18
+ if the attribute needs to be filled * after* the primary model has been persisted.
19
+ - [ #58 ] ( https://github.com/laravel-json-api/laravel/issues/58 ) Schema model classes can now be a parent class or an
20
+ interface.
21
+
22
+ ### Fixed
23
+
24
+ - [ #69 ] ( https://github.com/laravel-json-api/laravel/issues/69 ) Fixed the parsing of empty ` include ` , ` sort ` and
25
+ ` withCount ` query parameters.
26
+
6
27
## [ 1.0.0-beta.1] - 2021-03-30
7
28
8
29
### Added
Original file line number Diff line number Diff line change 25
25
"require" : {
26
26
"php" : " ^7.4|^8.0" ,
27
27
"ext-json" : " *" ,
28
- "laravel-json-api/core" : " ^1.0.0-beta.1 " ,
29
- "laravel-json-api/eloquent" : " ^1.0.0-beta.1 " ,
28
+ "laravel-json-api/core" : " ^1.0.0-beta.2 " ,
29
+ "laravel-json-api/eloquent" : " ^1.0.0-beta.2 " ,
30
30
"laravel-json-api/encoder-neomerx" : " ^1.0.0-beta.1" ,
31
- "laravel-json-api/exceptions" : " ^1.0.0-beta.1 " ,
31
+ "laravel-json-api/exceptions" : " ^1.0.0-beta.2 " ,
32
32
"laravel-json-api/spec" : " ^1.0.0-beta.1" ,
33
33
"laravel-json-api/validation" : " ^1.0.0-beta.1" ,
34
34
"laravel/framework" : " ^8.0"
35
35
},
36
36
"require-dev" : {
37
- "laravel-json-api/hashids" : " ^1.0.0-beta.1 " ,
37
+ "laravel-json-api/hashids" : " ^1.0.0-beta.2 " ,
38
38
"laravel-json-api/testing" : " ^1.0.0-beta.1" ,
39
39
"orchestra/testbench" : " ^6.9" ,
40
40
"phpunit/phpunit" : " ^9.5"
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public static function guessQueryOneUsing(callable $resolver): void
95
95
*/
96
96
public static function queryOne (string $ resourceType ): QueryParameters
97
97
{
98
- $ resolver = self ::$ queryManyResolver ?: new RequestResolver (RequestResolver::QUERY );
98
+ $ resolver = self ::$ queryOneResolver ?: new RequestResolver (RequestResolver::QUERY );
99
99
100
100
return $ resolver ($ resourceType );
101
101
}
You can’t perform that action at this time.
0 commit comments