How add Custom Validation Rules when using Form Request Validation in Laravel 5
While the above answer is correct, in a lot of cases you might want to create a custom validation only for a certain form request. You can leverage laravel FormRequest and use dependency injection to extend the validation factory. I think this solution is much simpler than creating a service provider. Here is how it … Read more