This commit is contained in:
2025-09-05 22:28:26 +02:00
parent da93f0086a
commit 1b67756a94
5 changed files with 60 additions and 7 deletions

View File

@@ -1,11 +1,23 @@
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Auth\AuthenticatedSessionController;
// Redirect root to Filament user panel's Lobby page
// Landing page for non-logged-in users with placeholder stats
Route::get('/', function () {
return redirect()->route('filament.user.pages.lobby');
if (auth()->check()) {
return redirect()->route('filament.user.pages.lobby');
}
$gamesCount = 10; // Placeholder
$usersCount = 100; // Placeholder
$biggestJackpot = 5000; // Placeholder
return view('landing.index', compact('gamesCount', 'usersCount', 'biggestJackpot'));
})->name('home');
// Explicit logout route for Filament user panel
Route::post('/logout', [AuthenticatedSessionController::class, 'destroy'])
->middleware('auth')
->name('filament.user.auth.logout');
// Include Breeze auth routes
require __DIR__.'/auth.php';