From c8c428b3cd80254d9cca2602f8a76692ca601676 Mon Sep 17 00:00:00 2001 From: Tom Breese Date: Sun, 14 Oct 2018 15:30:13 -0400 Subject: [PATCH] required-conditionals; fixing missing semi colon in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b199a5..0433da0 100644 --- a/README.md +++ b/README.md @@ -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.