Laravel event not being Broadcast
I can recommend You to check Your .env
file
and make sure BROADCAST_DRIVER
is not log
(try pusher
)
and also don't forget to keep running queue listener:
php artisan queue:listen
UPD.: if You look for more advanced solution, read about laravel horizon
the event will not be broadcasted immediately, it will be send to the queue, only when you listen or work on the queue, the event will be consumed. If you want execute jobs immediately, set QUEUE_DRIVER=sync . see: laravel queue