问题描述
在执行route:cache后访问laravel 8上的默认'/'路由时出现此错误
Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException The GET method is not supported for this route. Supported methods: HEAD.
知道为什么吗?除该路线外,所有路线均有效:D
Route::get('/',function () {
return view('welcome');
});
Route::middleware(['auth:sanctum','verified'])->get('/dashboard',function () {
return view('dashboard');
})->name('dashboard');
即使api.PHP路由也有效。
无法在线找到任何解决方案。
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)