如何修复此错误?我已经尝试将根重定向到我的主路由,但它仍然不起作用,错误显示无法访问此站点
Auth::routes();
Route::middleware('auth')->group(function () {
Route::permanentRedirect('/', '/home');
Route::get('/home', [HomeController::class, 'index'])->name('home');
});
这是我的 web.php
您应该在
app/Providers/RouteServiceProvide
中覆盖此内容
public const HOME = '/home';