Listening for broadcast events multi-tenancy
Hi guys, I'm new to using broadcasting in Laravel and I'm testing Laravel Reverb. Right now, I have it working so that when a user registers an appointment, if another logged-in user is on the same team, their appointment panel is updated with the reservation. So far, so good. Each user has X associated stores. I actually need it so that if user A, who is associated with stores 1 and 2, registers an event, it updates user B who is also associated with stores 1 and 2.
Currently, it only works if both users are in the same store, but if they are in different stores, it doesn't update. What am I doing wrong?
This is my code:
//chanels.php:
//RefreshAppointmentsEvent.php:
//script for loading events:
1 Reply
This is my Listener in the component Livewire: