twithers / laravel-horizon-clear-all
Adds a command to easily clear all your defined queues at once.
v1.0.2
2024-07-26 17:54 UTC
Requires
- php: ^8.2.0
Requires (Dev)
- laravel/framework: ^11.17.0
- laravel/horizon: ^5.26
- laravel/pint: ^1.17.0
- mockery/mockery: ^1.6
- orchestra/testbench: ^9.2
- phpunit/phpunit: ^11.2
- predis/predis: ^2.2
- rector/rector: ^1.2.2
- symfony/var-dumper: ^7.1.2
README
This package provides a convenient way to clear all your Horizon queues in a single command instead of repeating the command multiple times to clear several queues. Likely this will be used in a development environment, but it can be used in a production environment as well.
🚀 Installation
Requires PHP 8.2+, Laravel 11.0+, and Laravel Horizon 5.0+
You can install the package via Composer:
composer require twithers/laravel-horizon-clear-all
🙌 Usage
To clear all queues, run the following command:
php artisan horizon:clear-all
If you are running this in a production environment, you will be prompted to confirm the action. You can pass the --force
flag to skip the confirmation prompt:
php artisan horizon:clear-all --force
Laravel Horizon Clear All was created by Tim Withers under the MIT license.