teamId = auth()->user()->currentTeam()->id; } /** * Get the channels the event should broadcast on. * * @return array */ public function broadcastOn(): array { return [ new PrivateChannel("custom.{$this->teamId}"), ]; } }