Laravel broadcasting enables real-time features (live notifications, chat, live updates) by pushing server-side events to the browser over WebSockets. It works by broadcasting Laravel events over a WebSocket connection, which JavaScript clients subscribe to and react to — bridging your backend events to the frontend in real time.
The architecture
Server event (e.g. MessageSent) → broadcast over a WebSocket channel →
client JS (Laravel Echo) listening on that channel receives it → updates the UI live.
WebSocket server options:
✓ Laravel Reverb (first-party, self-hosted WebSocket server)
✓ Pusher (hosted service)
✓ Soketi (open-source, self-hosted)
