poldixd/laravel-queue-clear-all 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

poldixd/laravel-queue-clear-all

最新稳定版本:0.1.2

Composer 安装命令:

composer require poldixd/laravel-queue-clear-all

包简介

Development-only Artisan command to clear all Laravel Horizon queues.

README 文档

README

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:

composer require --dev poldixd/laravel-queue-clear-all

Laravel package auto-discovery registers the service provider automatically.

Usage

Clear every queue configured in Horizon using your default queue connection:

php artisan queue:clear-all

By default, the command uses config('queue.default') as the queue connection.

You can also pass a connection explicitly:

php artisan queue:clear-all redis

For every unique queue name found in your Horizon configuration, the package calls:

php artisan queue:clear CONNECTION --queue=QUEUE

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:

'environments' => [
    'production' => [
        'supervisor-1' => [
            'connection' => 'redis',
            'queue' => ['default', 'emails'],
        ],
        'supervisor-2' => [
            'connection' => 'redis',
            'queue' => 'notifications',
        ],
    ],
],

Testing

Run the test suite with:

composer test

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固