Suppose we have the following route in Laravel:
Route::get('/blog/{id}/{slug}', ['as' => 'blog', 'uses' => 'Front\PostController@single']);
Where the <kbd>{id}</kbd> and the <kbd>{slug}</kbd> are variables and will be passed as arguments to single() method of PostController class as below:
public function single($id, $slug) {}
But you can also pass the Request object as well, like so:
public function single(Request $request, $id, $slug) {}
or even:
public function single($id, $slug, Request $request) {}
and the Laravel still can handle them fine... looks like the order of arguments does not metter or there is some special technique applied?