我们知道`laravel`中`request`可以方便的`获取参数`的值
在路由中该如何取得`参数`
比如一个`路由`为
>Route::get('/list/{id}/{page}', 'IndexController@list');
我们该如何在`controller`中获取`id`和`page`
> use Illuminate\\Http\\Request;
public function list($id,$page=1,Request $request){
echo $request->route('id');
echo $request->route('page');
echo request()->route('id');
echo request()->route('page');
echo \\Route::input('id');
echo \\Route::input('page');
echo $request->id;
echo $request->page;
echo request()->id;
echo request()->page;
echo request('id');
echo request('page');