Say Hi to Server-Sent Events If you've ever needed to implement a real-time feature in your web application, you're likely familiar with the complexity of using WebSockets or the resource-intensive nature of long-polling.
The flow is simple, the client establishes a connection with the server, and the server send updates to the client over that connection as they occur, these updates are sent as "events," which consist of a message and an optional event name. The client then can react to these events accordingly, by displaying a notification or updating the page.
Let's create a new Laravel event php artisan make:event RealTimeNotification