event and listener in laravel code example
Example 1: laravel fire event
event(new OrderShipped($order));
Example 2: laravel event listener
php artisan event:generate
event(new OrderShipped($order));
php artisan event:generate