vkoori/identifier-queue
Installation
composer require vkoori/identifier-queue
Register service providers
Luemn
Add this lines to bootstrap/app.php file.
$app->register(\Kooriv\Queue\Providers\QueueServiceProvider::class);
Laravel
For Laravel versions before 5.5 or if not using auto-discovery, register the service provider in config/app.php
Add connection to config/queue.php:
'identify' => [
'driver' => 'identify',
'table' => 'identify_jobs',
'queue' => 'default',
'retry_after' => 90,
'after_commit' => false,
]
Create database table
php artisan queue:identifier-table
php artisan migrate
Note
This table is fully compatible with the Lumen/Laravel database driver. So don't be afraid when using this table.
Dispatching job
You can dispatch your jobs in the queue using the helper function below
dispatcher(new ExampleJob)->onConnection("identify")->onQueue("queue")->setIdentifier("identifier");
Note
If you want to set an
identifierCode, your job must have use following trait:
use \Kooriv\Queue\Illuminate\Bus\Trait\IdentifierCode;
Note
Using this helper function will not cause any damage to other drivers.
Related Packages
shiftonelabs/laravel-sqs-fifo-queue
Adds a Laravel queue driver for Amazon SQS FIFO queues.
6,818,079
155
joblocal/laravel-sqs-sns-subscription-queue
A simple Laravel service provider which adds a new queue connector to handle SNS...
466,646
48
bschmitt/laravel-amqp
AMQP wrapper for Laravel and Lumen to publish and consume messages
2,546,238
280