If I have a route like the following.
Route::post('/user/{id}', 'UserController@my_function');
How do I set up the controller function to be like this so I can use the URL parameter and POST request body data? I'd expect it to be similar to the below code, but is this correct?
public function my_function($id, Request $request){}