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