livestream = $livestream; $this->chatmsg = $chatmsg; } /** * Get the channels the event should broadcast on. * * @return \Illuminate\Broadcasting\Channel|array */ public function broadcastOn() { return new Channel('live.chat.' . $this->livestream->profile_id); } public function broadcastAs() { return 'chat.unpin-message'; } public function broadcastWith() { return $this->chatmsg; } }