$user]); })->middleware("auth"); Route::view("/login", "login"); Route::post('/login', [LoginController::class, "authenticate"])->name("login"); Route::post('/register', [LoginController::class, "register"])->name("register"); Route::any("/logout", [LoginController::class, "logout"])->name("logout");