From 316e0ede39a07483dc0664c02e59748890eff127 Mon Sep 17 00:00:00 2001 From: javier Date: Wed, 17 Jun 2026 15:38:28 +0200 Subject: [PATCH] fix(routes): remove dead /logout route + dead Auth controller imports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit web.php referenced App\Http\Controllers\Auth\AuthenticatedSessionController (and imported 8 other Auth\* controllers) that don't exist — this is a Breeze+Volt app where auth is handled by Volt pages (routes/auth.php) and logout by the Volt navigation action (App\Livewire\Actions\Logout). The broken /logout route made 'php artisan route:list' throw ReflectionException. Removed the dead route (nothing uses route('logout'); the nav uses wire:click=logout) and the unused Auth controller imports. Login/register/reset already worked via Volt; logout works via the Volt action. Co-Authored-By: Claude Opus 4.8 (1M context) --- routes/web.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/routes/web.php b/routes/web.php index 210e321..05fafb9 100644 --- a/routes/web.php +++ b/routes/web.php @@ -9,16 +9,6 @@ use App\Livewire\ProjectList; use App\Livewire\PhaseProgress; use App\Livewire\PhaseGantt; use App\Http\Controllers\ProjectReportController; - -use App\Http\Controllers\Auth\AuthenticatedSessionController; -use App\Http\Controllers\Auth\ConfirmablePasswordController; -use App\Http\Controllers\Auth\EmailVerificationNotificationController; -use App\Http\Controllers\Auth\EmailVerificationPromptController; -use App\Http\Controllers\Auth\NewPasswordController; -use App\Http\Controllers\Auth\PasswordController; -use App\Http\Controllers\Auth\PasswordResetLinkController; -use App\Http\Controllers\Auth\RegisteredUserController; -use App\Http\Controllers\Auth\VerifyEmailController; use Illuminate\Support\Facades\Route; /* @@ -170,9 +160,8 @@ Route::get('/reports/dashboard', ReportsDashboard::class)->name('reports.dashboa //Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update'); Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy'); - Route::post('/logout', [AuthenticatedSessionController::class, 'destroy']) - ->name('logout'); - + // Logout se gestiona vía la acción Volt en el componente de navegación + // (App\Livewire\Actions\Logout), por lo que no hace falta una ruta /logout. }); // Incluir rutas de autenticación (login, registro, recuperación de contraseña, logout)