PHP code example of poldixd / laravel-queue-clear-all
1. Go to this page and download the library: Download poldixd/laravel-queue-clear-all library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
poldixd / laravel-queue-clear-all example snippets
'environments' => [
'production' => [
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default', 'emails'],
],
'supervisor-2' => [
'connection' => 'redis',
'queue' => 'notifications',
],
],
],
bash
php artisan queue:clear CONNECTION --queue=QUEUE