Skip to content

Commit 0d87cdf

Browse files
committed
update document
1 parent 1a068da commit 0d87cdf

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

document.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)