草庐IT

ForumQuestionsController

全部标签

php - Laravel 5 单路由多 Controller 方法

我有一个带参数的路由Route::get('forum/{ques}',"ForumQuestionsController@show");现在我想要一条像这样的路线Route::get('forum/add',['middleware'=>'auth:student','uses'=>"ForumQuestionsController@add"]);好吧,当我点击localhost:800/forum/add时,我被路由到ForumQuestionsController@show而不是ForumQuestionsController@add好吧,我知道我可以在ForumQuestion