diff --git a/src/Validation.php b/src/Validation.php index d74786a..f83d8d3 100644 --- a/src/Validation.php +++ b/src/Validation.php @@ -499,7 +499,7 @@ protected function resolveRules($rules): array } else { $ruleName = is_object($rule) ? get_class($rule) : gettype($rule); $message = "Rule must be a string, Closure or '".Rule::class."' instance. ".$ruleName." given"; - throw new \Exception(); + throw new \Exception($message); } $resolvedRules[] = $validator;