LaravelPackages.net
Acme Inc.
Toggle sidebar
morrislaptop/laravel-queue-clear

Command for wiping your queues clear

3.118.585
146
v1.2.0
About morrislaptop/laravel-queue-clear

morrislaptop/laravel-queue-clear is a Laravel package for command for wiping your queues clear. It currently has 146 GitHub stars and 3.118.585 downloads on Packagist (latest version v1.2.0). Install it with composer require morrislaptop/laravel-queue-clear. Discover more Laravel packages by morrislaptop or browse all Laravel packages to compare alternatives.

Last updated

Laravel Queue Clear Command

Build Status

Often, when you're issuing php artisan db:refresh --seed, you will have queue jobs left over that won't match with your database records anymore.

This package simplifies the process of clearing your queues drastically.

Installation

Begin by installing this package through Composer.

{
    "require": {
		"morrislaptop/laravel-queue-clear": "~1.0"
	}
}

Laravel 5.5+ will use the auto-discovery function.

If using Laravel 5.4 (or if you don't use auto-discovery) you will need to include the service provider in config/app.php.

'providers' => [
    Morrislaptop\LaravelQueueClear\LaravelQueueClearServiceProvider::class,
];

Usage

php artisan queue:clear [connection] [queue]

Where:

  • [connection] is the name of a connection in your config/queue.php
  • [queue] is the name of the queue / pipe you want to clear

If you omit either argument, it will use your default driver and the default queue / pipe for that driver.

Comments