File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
tests/dummy/app/JsonApi/Posts Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -160,9 +160,9 @@ In our `Validation\AbstractValidators` class we have renamed the following two p
160
160
161
161
We have also simplified our validator classes into a single class. The following classes have
162
162
been removed:
163
- - ` Validation\AbstractValidator ` : use ` Factory \Factory::createValidator()` or extend ` Validation\Validator ` .
164
- - ` Validation\ResourceValidator ` : use ` Factory \Factory::createResourceValidator()` .
165
- - ` Validation\QueryValidator ` : use ` Factory \Factory::createQueryValidator()` .
163
+ - ` Validation\AbstractValidator ` : use ` Factories \Factory::createValidator()` or extend ` Validation\Validator ` .
164
+ - ` Validation\ResourceValidator ` : use ` Factories \Factory::createResourceValidator()` .
165
+ - ` Validation\QueryValidator ` : use ` Factories \Factory::createQueryValidator()` .
166
166
167
167
## 1.0.0-beta.5 to 1.0.0-beta.6
168
168
Original file line number Diff line number Diff line change @@ -76,7 +76,14 @@ class Validators extends AbstractValidators
76
76
* @var array
77
77
*/
78
78
protected $ deleteMessages = [
79
- 'no_comments.accepted ' => 'Cannot delete a post with comments. ' ,
79
+ 'accepted ' => 'Cannot delete a post with :attribute. ' ,
80
+ ];
81
+
82
+ /**
83
+ * @var array
84
+ */
85
+ protected $ deleteAttributes = [
86
+ 'no_comments ' => 'comments ' ,
80
87
];
81
88
82
89
/**
You can’t perform that action at this time.
0 commit comments