如何使用路由在 url 中传递多个可选参数?
http://example.com/user
http://example.com/user/22
http://example.com/user/25/disable
Route::resource('users', 'AdminController@users', array('before'=>'auth'));
Route::get('users/{id}', 'AdminController@users', array('before'=>'auth'));
Route::post('users/{id}', 'AdminController@users', array('before'=>'auth'));
Route::get('users/{id}/{pages}', 'AdminController@users', array('before'=>'auth'));
Route::post('users/{id}/{pages}', 'AdminController@users', array('before'=>'auth'));