clientCase = $clientCase; } /** * Get the channels the event should broadcast on. * * @return array */ public function broadcastOn(): PrivateChannel { return new PrivateChannel('segments'.$this->clientCase->id); } public function broadcastAs(){ return 'client_case.terrain.add'; } }