getMessage()); app()->bind('queue-has-failed-from-queue-export-job', function () { return true; }); } /** * @return array */ public function registerEvents(): array { return [ BeforeExport::class => function () { throw new Exception('catch exception from QueueExport job'); }, ]; } }