-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels