In Laravel, when attempting to dispatch a job to a queue, there is a possibility of connection failures such as a downed broker, an unresponsive database, or a broken Redis connection. In such cases, it is important to handle the job as a failed job appropriately, and prevent the exception from propagating to the client.
You can install the package via composer:
composer require mtnaghibi/safe-dispatch
To use it, simply replace `Dispatchable` with `SafeDispatchable` in your jobs.
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email naghibi.mohammadtaghi@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.