mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
fixed typo on labels method
This commit is contained in:
parent
4a14b0e13e
commit
366450a1e0
@ -191,7 +191,7 @@ However we can use a array of labels to solve this issue by simply adding the `l
|
||||
```php
|
||||
$v = new Valitron\Validator(array());
|
||||
$v->rule('required', array('name', 'email'))->message('{field} is required');
|
||||
$v->rules(array(
|
||||
$v->labels(array(
|
||||
'name' => 'Name',
|
||||
'email' => 'Email address'
|
||||
));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user