diff --git a/src/Illuminate/Validation/Validator.php b/src/Illuminate/Validation/Validator.php index 91704ed6b798..e3c129b43390 100755 --- a/src/Illuminate/Validation/Validator.php +++ b/src/Illuminate/Validation/Validator.php @@ -759,7 +759,7 @@ protected function addRules($rules) * @param string|array $attribute * @param string|array $rules * @param callable $callback - * @return void + * @return $this */ public function sometimes($attribute, $rules, callable $callback) { @@ -770,6 +770,8 @@ public function sometimes($attribute, $rules, callable $callback) $this->addRules([$key => $rules]); } } + + return $this; } /**