group(function (): void { Route::get("/", fn() => inertia("Dashboard"))->name("dashboard"); Route::post("/logout", LogoutController::class); }); Route::middleware("guest")->group(function (): void { Route::get("login", fn() => inertia("Login"))->name("login"); Route::get("login/google/start", [GoogleController::class, "redirect"]) ->name("login.google.start"); Route::get("login/google/end", [GoogleController::class, "callback"]) ->name("login.google.end"); });