In this simple tutorial I will show you an example of how to create a custom form request and data validator using laravel’s Validator Facade. What is FormRequest? FormRequest is Laravel’s default form request validation mechanism. FormRequest classes can generally…
Tag: Form Request Validation
Using Unique Validation Rule in Form Request in Laravel
Sometimes you want to make a field unique in a database table so that duplicity should be avoided. The very common case is email address. Laravel provides useful tools to achieve this, including the Unique validation rule. However to make…