Hi,
Can you help me on how to use FormRequest to validate query parameters?
here's a my code:
Route:
Route::controller(UserController::class)->group(function () {
Route::get('get-user/{id}', 'getUser');
});
Controller:
public function getUser(UserController $request) // or => (UserController $id)
{
// can't get the parameter I expect
}
and then there is a EditUserRequest class extending FormRequest which I wish to use!
tnx for the help in advance.
Hi,
Can you help me on how to use
FormRequestto validate query parameters?here's a my code:
Route:
Controller:
and then there is a
EditUserRequestclass extendingFormRequestwhich I wish to use!tnx for the help in advance.