teamId = auth()->user()->currentTeam()->id; } public function broadcastOn(): array { return [ new PrivateChannel("team.{$this->teamId}"), ]; } }