From 2073aeb49def2fdb1d0b2115ec32777336445c5c Mon Sep 17 00:00:00 2001 From: Francinaldo Almeida Date: Sun, 29 Jan 2017 18:18:51 -0500 Subject: [PATCH] Update Validator.php Allow the user to add additional rules on the go to the validator instance. --- src/Illuminate/Validation/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Validation/Validator.php b/src/Illuminate/Validation/Validator.php index 37457d0450b0..691124fa7a01 100755 --- a/src/Illuminate/Validation/Validator.php +++ b/src/Illuminate/Validation/Validator.php @@ -742,7 +742,7 @@ public function setRules(array $rules) * @param array $rules * @return void */ - protected function addRules($rules) + public function addRules($rules) { // The primary purpose of this parser is to expand any "*" rules to the all // of the explicit rules needed for the given data. For example the rule