How can I validate my update action?


#1

Hello. How do I validate fields in update actions? I have a validator for my store action that validates all my fields. But in update action, I just need validates the fields that are passed in request.
How do I do this?


#2

You need to create another validator for the update request.

This way you keep your code simple and clean


#3

Oh :joy:! Thanks.