Fixed dashboard route error and ensured user panel at root

This commit is contained in:
2025-09-03 23:10:44 +02:00
parent eff5aafbdb
commit da93f0086a
2 changed files with 8 additions and 14 deletions

View File

@@ -1,17 +1,11 @@
<?php
use App\Http\Controllers\ProfileController;
use Illuminate\Support\Facades\Route;
use App\View\Components\Lobby;
Route::get('/dashboard', function () {
return view('dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');
// Redirect root to Filament user panel's Lobby page
Route::get('/', function () {
return redirect()->route('filament.user.pages.lobby');
})->name('home');
Route::middleware('auth')->group(function () {
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');
});
require __DIR__.'/auth.php';
// Include Breeze auth routes
require __DIR__.'/auth.php';