File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ run: `composer update`
78
78
];
79
79
}
80
80
81
- // custom validator message, more {@see ValidatorTrait ::defaultMessages() }
81
+ // custom validator message, more {@see ValidationTrait ::defaultMessages}
82
82
public function messages()
83
83
{
84
84
return [
@@ -155,7 +155,8 @@ $valid = Validation::make($_POST,[
155
155
156
156
> 如果需要让一个验证器在多个类似情形下使用,在验证时也表明要验证的场景
157
157
158
- ```
158
+ ``` php
159
+
159
160
// at a subclass of the Validation class
160
161
<?php
161
162
@@ -172,7 +173,8 @@ $valid = Validation::make($_POST,[
172
173
173
174
> 在下面设置了场景时,将只会使用上面的第 1,3 条规则. (第 1 条没有限制规则使用场景的,在所有场景都可用)
174
175
175
- ```
176
+ ``` php
177
+
176
178
// at logic
177
179
<?php
178
180
@@ -189,7 +191,8 @@ $valid = Validation::make($_POST,[
189
191
当其返回 ` true ` 验证此条规则,
190
192
否则不会验证此条规则
191
193
192
- ```
194
+ ``` php
195
+
193
196
// at a subclass of the Validation class
194
197
<?php
195
198
You can’t perform that action at this time.
0 commit comments