I have a custom event that implements ShouldBroadcastNow
and broadcasts to a public channel.
As the broadcastOn
function just returns one channel.
I've already tried to create a custom listener but couldn't implement ShouldBroadcastNow
public function broadcastOn()
{
// foreach($this->ticket->intersectRouteDetails);
return new Channel('route-details.'.$this->ticket->routeDetails->id);
}
what I need is a way to loop with the commented collection to change the channel name.
Is there a way to broadcast multiple channels in this event?
Thanks