From e3c6331380e0c5eec7ef29183aac52c7a36886e5 Mon Sep 17 00:00:00 2001 From: Tom Breese Date: Sun, 14 Oct 2018 15:32:30 -0400 Subject: [PATCH] required-conditionals; fixing field typo in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0433da0..af970f7 100644 --- a/README.md +++ b/README.md @@ -285,7 +285,7 @@ $v->validate(); *Note* You can provide multiple values either as comma-separated list or as an array. In this case if ANY of the fields are NOT present the field will be required. ```php -// in this case the password field will be required if either the first_name or last_name fields are not present +// in this case the username field will be required if either the first_name or last_name fields are not present $v->rule('requiredWithout', 'username', 'first_name', 'last_name'); // this is the same as the above line $v->rule('requiredWithout', 'username', ['first_name', 'last_name']);