Laravel - Broadcasting - Using Example Application
Before diving into each component of event broadcasting, let's take a high level overview using an e-commerce store as an example.
In our application, let's assume we have a page that allows users to view the shipping status for their orders. Let's also assume that a
OrderShipmentStatusUpdated event is fired when a shipping status update is processed by the application:
use App\Events\OrderShipmentStatusUpdated; OrderShipmentStatusUpdated::dispatch($order);