mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
Usage documentation adjusted
This commit is contained in:
parent
0976fa3a79
commit
c4ea1db371
@ -447,7 +447,7 @@ $v->validate();
|
|||||||
## listContains fields usage
|
## listContains fields usage
|
||||||
The `listContains` rule checks that the field is present in a given array of values.
|
The `listContains` rule checks that the field is present in a given array of values.
|
||||||
```php
|
```php
|
||||||
$v->rule('in', 'color', 'yellow');
|
$v->rule('listContains', 'color', 'yellow');
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternate syntax.
|
Alternate syntax.
|
||||||
@ -1173,4 +1173,3 @@ before running the tests:
|
|||||||
6. Push to the branch (`git push origin my-new-feature`)
|
6. Push to the branch (`git push origin my-new-feature`)
|
||||||
7. Create new Pull Request
|
7. Create new Pull Request
|
||||||
8. Pat yourself on the back for being so awesome
|
8. Pat yourself on the back for being so awesome
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user