File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ jobs:
10
10
build :
11
11
12
12
runs-on : ubuntu-latest
13
-
13
+
14
14
strategy :
15
15
fail-fast : true
16
16
matrix :
17
17
php : ['7.4', '8.0']
18
- laravel : ['^8.0 ']
18
+ laravel : ['^8.30 ']
19
19
20
20
steps :
21
21
- name : Checkout Code
38
38
timeout_minutes : 5
39
39
max_attempts : 5
40
40
command : composer install --no-suggest --prefer-dist -n -o
41
-
41
+
42
42
- name : Execute tests
43
43
run : vendor/bin/phpunit
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ All notable changes to this project will be documented in this file. This projec
13
13
remains unchanged - both are authorized using the ` view<RelationshipName> ` method on the relevant policy.
14
14
- The request class now has a ` isCreatingOrUpdating() ` helper method to determine whether the request is to create or
15
15
updated a resource.
16
+ - Add stop on first failure to all validators in the resource request class.
17
+
18
+ ### Changed
19
+
20
+ - Minimum Laravel version is now ` 8.30 ` . This change was required to use the ` $stopOnFirstFailure ` property on Laravel's
21
+ ` FormRequest ` class.
16
22
17
23
## [ 1.0.0-beta.4] - 2021-06-02
18
24
Original file line number Diff line number Diff line change 31
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.2" ,
34
- "laravel/framework" : " ^8.0 "
34
+ "laravel/framework" : " ^8.30 "
35
35
},
36
36
"require-dev" : {
37
37
"laravel-json-api/hashids" : " ^1.0.0-beta.2" ,
Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ protected function createRelationshipValidator(ValidationFactory $factory): Vali
316
316
$ this ->relationshipRules (),
317
317
$ this ->messages (),
318
318
$ this ->attributes ()
319
- );
319
+ )-> stopOnFirstFailure ( $ this -> stopOnFirstFailure ) ;
320
320
}
321
321
322
322
/**
@@ -338,7 +338,7 @@ protected function createDeleteValidator(ValidationFactory $factory): Validator
338
338
$ this ->attributes (),
339
339
method_exists ($ this , 'deleteAttributes ' ) ? $ this ->deleteAttributes () : []
340
340
)
341
- );
341
+ )-> stopOnFirstFailure ( $ this -> stopOnFirstFailure ) ;
342
342
}
343
343
344
344
/**
You can’t perform that action at this time.
0 commit comments