Laravel theorytheory 0/50 · 0%
Async · medium

35. Events, Broadcasting & WebSockets

Real-time updates from server events.

Broadcasting sends server-side events to the browser in real time using drivers like Pusher, Ably, or Laravel Reverb (a first-party WebSocket server). Events implement ShouldBroadcast and specify broadcastOn() channels, which the frontend subscribes to using Laravel Echo. Private and presence channels add authorization checks for who can listen.

Check your understanding

  1. 1. What interface marks an event for broadcasting?

  2. 2. What is Laravel Reverb?