validate([ 'tournament_id' => 'required|exists:App\\Models\\Tournament,id', ]); $tournament = Tournament::findOrFail($validatedData['tournament_id']); $this->authorize('addRound', $tournament); $round = Round::create([ 'tournament_id' => $validatedData['tournament_id'], ]); return $round->toJson(); } }