这章节questions路由有问题
Route::get('/questions/{question}', 'QuestionsController@show');
Route::get('/questions/{category?}', 'QuestionsController@index')->name('questions.index');
这两个路由会冲突,会跑到第一个show方法里面。是不是要改一下第二个方法 ¿
推荐文章: