Laravel 8错误路线|此路由不支持 GET 方法

Laravel 8 error route | The GET method is not supported for this route

Laravel V 8 Jetstream。 我在共享主机上上传并发布项目后出现了这个问题 错误信息

Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException The GET method is not supported for this route. Supported methods: HEAD.

enter image description here

Route::get('/', function () {
    return view('welcome');
});

路线代码

Route::middleware(['auth:sanctum', 'verified'])->group(function () {
    Route::get('/dashboard',function () {
        return view('dashboard');
    })->name('dashboard');;

    Route::get('/upload', function () {
        return view('uploadpdf');
    })->name('upload'); 

});

如果遇到此问题,请始终检查 .env 和配置文件中的设置 在 config.php - /bootstrap/cache/config.php 中发现错误。 我没有配置 APP_URL 之类的位置设置,某些目录的路径指向我的计算机 祝大家好运 Dzsecurity 公司团队帮助找到解决方案的问候