Download the PHP package poldixd/laravel-queue-clear-all without Composer
On this page you can find all versions of the php package poldixd/laravel-queue-clear-all. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download poldixd/laravel-queue-clear-all
More information about poldixd/laravel-queue-clear-all
Files in poldixd/laravel-queue-clear-all
Package laravel-queue-clear-all
Short Description Development-only Artisan command to clear all Laravel Horizon queues.
License MIT
Homepage https://github.com/poldixd/laravel-queue-clear-all
Informations about the package laravel-queue-clear-all
Laravel Queue Clear All
Clear all queues configured in Laravel Horizon with a single Artisan command.
This package is intended for local development and non-production environments. Do not install or run it in production.
The package reads the queue names from config('horizon.environments'), removes duplicates, and runs Laravel's built-in queue:clear command for each queue.
Installation
Install the package with Composer:
Laravel package auto-discovery registers the service provider automatically.
Usage
Clear every queue configured in Horizon using your default queue connection:
By default, the command uses config('queue.default') as the queue connection.
You can also pass a connection explicitly:
For every unique queue name found in your Horizon configuration, the package calls:
For example, if Horizon contains the queues default, emails, and notifications, this package clears each of them once.
Horizon Configuration
The command supports Horizon queue definitions as strings or arrays:
Testing
Run the test suite with:
All versions of laravel-queue-clear-all with dependencies
illuminate/support Version ^11.0 || ^12.0 || ^13.0
laravel/horizon Version ^3.0 || ^4.0 || ^5.0