Laravel - Requests - Dependency Injection Route Parameters

If your controller method is also expecting input from a route parameter you should list your route parameters after your other dependencies. For example, if your route is defined like so:

    
    use App\Http\Controllers\UserController;
    
    Route::put('/user/{id}', [UserController::class, 'update']);
	

You may still type-hint the Illuminate\Http\Request and access your id route parameter by defining your controller method as follows: