How to throw ValidationException in Laravel without Request validation helpers or manually creating a Validator?
How to use ValidationException::withMessages() method?
Instead of manually creating a Validator, then adding some rules into it, and executing validate() method on the Validator, you can directly throw ValidationException with error messages in it.
C...
annissimo.com2 min read