livestream = $livestream; $this->profileId = $profileId; } /** * Get the channels the event should broadcast on. * * @return \Illuminate\Broadcasting\Channel|array */ public function broadcastOn() { return new PrivateChannel('live.chat.' . $this->livestream->profile_id); } public function broadcastAs() { return 'chat.ban-user'; } public function broadcastWith() { return ['id' => $this->profileId]; } }