我正在使用 laravel ui auth,我通过以下方式生成了 auth 路由:
Auth::routes();
在 web.php 中。
然后我想将'/login' url 更改为'/login-dashbored',所以我在我的web.php 中这样做了:
Route::get('/login-dashboard', [LoginController::class, 'showLoginForm']);
现在的问题是
Route::get('/login', [LoginController::class, 'showLoginForm']);
由 Auth::routes() 创建;仍然存在,并且 url '/login' 有效。我尝试使用
Auth::routes(['login' => false]);
但什么也没发生。我将如何删除获取登录网址?