isBatch = $isBatch; $this->combinationGoodsUpdate = $combinationGoodsUpdate; if (is_array($data)) { // ids集合 $this->goodsSkus = GoodsSku::query()->whereIn('id', $data)->get(); } else { // GoodsSku Elo模型对象 $this->goodsSku = $data; } } /** * Get the channels the event should broadcast on. * * @return \Illuminate\Broadcasting\Channel|array */ public function broadcastOn() { return new PrivateChannel('channel-name'); } }