这是一个创建于 3605 天前的主题,其中的信息可能已经有所发展或是发生改变。
Route::controller('/','IndexController');
Route::controller('list','ListController');
我定义了两个RESTful 控制器,但输入localhost/list却进入了IndexController下的getList方法。但是换成基础路由器Route::get('list','ListController@index');,输入localhost/list就进入了ListController的index方法,这是怎么回事?