Add create and show page for competition
This commit is contained in:
parent
1485f3daf5
commit
744308d0cb
10 changed files with 151 additions and 72 deletions
|
@ -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)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue