$tournament->loadMax('rounds', 'number');
$round = Round::create([
+ 'game' => $tournament->game,
'number' => intval($tournament->rounds_max_number) + 1,
'no_record' => $tournament->no_record,
'tournament_id' => $validatedData['tournament_id'],
RoundChanged::dispatch($round);
- $round->load('results');
+ $round->load(['results', 'results.user']);
return $round->toJson();
}
RoundChanged::dispatch($round);
- $round->load('results');
+ $round->load(['results', 'results.user']);
return $round->toJson();
}
RoundChanged::dispatch($round);
- $round->load('results');
+ $round->load(['results', 'results.user']);
return $round->toJson();
}