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'], ]); Protocol::roundAdded( $tournament, $round, $request->user(), ); RoundAdded::dispatch($round); return $round->toJson(); } }