嗨,我正在尝试打开一个页面,但它说:
抱歉,找不到您要查找的页面。
文件夹图片:
路线:
Route::match(['get','post'], 'CategoriesController@index');
控制器:
public function index()
{
return view('admin.categories.index');
}
有什么建议来解决这个issue
?
你错过了自己的网址。
Route::match(['get', 'post'], '/', 'Controller@action');
第二个参数是网址,你错过了它在你的route:list
显示CategoriesController@index
作为网址的方式。
Route::match(['get', 'post'], '/admin/categories',CategoriesController@index);
检查您是否在链接底部放置了正确的URL。