Open arian-sakhaei opened 1 year ago
Hi, is this still relevant?
The best way I figured out on how to do validation on route's values is to merge them into request body in your UserEditRequest's prepare
method override (or something like that, can't check and share the code right now - see the class you're extending).
Hi, Can you help me on how to use
FormRequest
to validate query parameters?here's a my code:
Route:
Controller:
and then there is a
EditUserRequest
class extendingFormRequest
which I wish to use! tnx for the help in advance.