required-conditionals; fixing missing semi colon in readme

This commit is contained in:
Tom Breese 2018-10-14 15:30:13 -04:00
parent 17c2f05168
commit c8c428b3cd

View File

@ -221,7 +221,7 @@ $v->validate();
The `requiredWith` rule checks that the field is required, not null, and not the empty string, if any other fields are present, not null, and not the empty string.
```php
// password field will be required when the username field is provided and not empty
$v->rule('requiredWith', 'password', 'username')
$v->rule('requiredWith', 'password', 'username');
```
Alternate syntax.