Skip to content
Advertisement

I am getting this error. Method IlluminateValidationValidator::validateReqiured does not exist

I am getting this error for validation of form.

Method IlluminateValidationValidator::validateReqiured does not exist.

JavaScript

please help to get rid of this error. I had also tried code below.

JavaScript

I am getting same error for methods. I this code after removing use IlluminateValidationValidationRequired; but same error is appearing. Anyone can help highly be appreciated. Thanks

Advertisement

Answer

Instead of:

JavaScript

Try:

JavaScript

Also, on Laravel 5, you can validate with in the request object (no imports needed):

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement