Add create and show page for competition

This commit is contained in:
unurled 2025-07-03 20:18:53 +02:00
parent 1485f3daf5
commit 744308d0cb
10 changed files with 151 additions and 72 deletions

View file

@ -11,7 +11,7 @@ Route::get('/', function () {
$user = Auth::user();
$userTournaments = [];
if ($user) {
$userTournaments = Inertia::defer(fn() => CompetitionController::getUser($user, 1, 10));
$userTournaments = Inertia::defer(fn() => CompetitionController::getUser($user, 0, 10));
}
return Inertia::render('Home', [
'publicTournaments' => Inertia::defer(fn() => CompetitionController::getPublics(1, 10)),