teamId = $server->team_id; $this->serverUuid = $server->uuid; $this->version = $version; } public function broadcastOn(): array { if (is_null($this->teamId)) { return []; } return [ new PrivateChannel("team.{$this->teamId}"), ]; } }