- Define your broadcast channels in
routes/channels.php
.
- Ensure that your
MessageEvent
implements theShouldQueue
interface to queue the event.
- Update the
config/broadcast.php
configuration file as needed.
-
Run the queue worker with the following command:
php artisan queue:work
-
Alternatively, you can set the QUEUE_CONNECTION to sync for immediate execution:
env_file
QUEUE_CONNECTION=sync