laravel-validator icon indicating copy to clipboard operation
laravel-validator copied to clipboard

Fix/validate update custom rule

Open kevin-foster-uk opened this issue 3 years ago • 0 comments

When using custom validation rules AbstractValidator::parserValidationRules() fails because it is expecting all rules to be defined as a string. Laravel Validator allows you to define custom rules as Rule objects. In this case AbstractValidator::parserValidationRules() should pass them through as-is.

kevin-foster-uk avatar Mar 29 '22 00:03 kevin-foster-uk