mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-31 07:01:54 +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
|
```php
|
||||||
$v = new Valitron\Validator(array());
|
$v = new Valitron\Validator(array());
|
||||||
$v->rule('required', array('name', 'email'))->message('{field} is required');
|
$v->rule('required', array('name', 'email'))->message('{field} is required');
|
||||||
$v->rules(array(
|
$v->labels(array(
|
||||||
'name' => 'Name',
|
'name' => 'Name',
|
||||||
'email' => 'Email address'
|
'email' => 'Email address'
|
||||||
));
|
));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user