Go to Home

Customising the validation rules based on the inputs in Laravel 6 Form Request

In continuation with my previous article, in this article I'll explain you how to customize your validation rules based on your inputs

Here, I'm checking my input save_email_address is true or not. If it is true, then I'm applying the validation rule of email to email input submitted.

Hope you find this useful. Happy Coding!

One email per week. No spam ever.

Subscribe