File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ run: `composer update`
7878 ];
7979 }
8080
81- // custom validator message, more {@see ValidatorTrait ::defaultMessages() }
81+ // custom validator message, more {@see ValidationTrait ::defaultMessages}
8282 public function messages()
8383 {
8484 return [
@@ -155,7 +155,8 @@ $valid = Validation::make($_POST,[
155155
156156> 如果需要让一个验证器在多个类似情形下使用,在验证时也表明要验证的场景
157157
158- ```
158+ ``` php
159+
159160// at a subclass of the Validation class
160161<?php
161162
@@ -172,7 +173,8 @@ $valid = Validation::make($_POST,[
172173
173174> 在下面设置了场景时,将只会使用上面的第 1,3 条规则. (第 1 条没有限制规则使用场景的,在所有场景都可用)
174175
175- ```
176+ ``` php
177+
176178// at logic
177179<?php
178180
@@ -189,7 +191,8 @@ $valid = Validation::make($_POST,[
189191当其返回 ` true ` 验证此条规则,
190192否则不会验证此条规则
191193
192- ```
194+ ``` php
195+
193196// at a subclass of the Validation class
194197<?php
195198
You can’t perform that action at this time.
0 commit comments