musaddiq-ciklum / laravel-learning

0 stars 1 forks source link

Server side form validations by using Laravel Request #25

Open njaciklum opened 3 years ago

njaciklum commented 3 years ago

Kindly refer to https://laravel.com/docs/8.x/validation#creating-form-requests for applying validations

It would be better if you handle the add and edit validation in same request.

musaddiq-ciklum commented 3 years ago

This is already implemented and can be seen in ProductController.php. Also as same request is used in both store and update methods.