data = $data; } /** * Get the channels the event should broadcast on. * * @return Channel|array */ public function broadcastOn() { return new \Illuminate\Broadcasting\Channel($this->channelName()); } /** * Get the data to broadcast. * * @return array */ public function broadcastWith() { return $this->data; } /** * Get the broadcast channel name for the event. * * @return string */ protected function channelName() { return 'conv'; } }