/** * Validates the Player and the * Tournament relashionships * * @param Tournament $tournament * @param Player $player * * @throws Illuminate\Database\Eloquent\ModelNotFoundException */ private function validatePlayer(Tournament $tournament, Player $player) { $tournament->players()->where('player_id', $player->id)->firstOrFail(); }