Request Validation and Custom Validation with Image File Input in Laravel 5

01.Create a controller

02.Route

03.Controller

04.and finally the view uploadfile.blade.php

05.Create a custom validation

Go to App\Providers in AppServiceProvider

and write a validation message in resources\lang\en\validation.php

cleaner with DI
#in Repositories

#controller

For more information go to

//custom validation
//http://itsolutionstuff.com/post/laravel-5-create-custom-validation-rule-exampleexample.html
//validation
//http://stackoverflow.com/questions/28417977/custom-validator-in-laravel-5

Leave a Reply

Your email address will not be published. Required fields are marked *