0👍
✅
By default, Laravel’s ShouldBroadcast uses a job queue for the broadcast events. You can either set up your queue which is probably the ideal solution. Alternatively, to get it working quickly you can change your MessagePosted event to ShouldBroadcastNow:
class MessagePosted implements ShouldBroadcastNow
and don’t forget
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
Source:stackexchange.com