Package Data | |
---|---|
Maintainer Username: | kgiedrius |
Maintainer Contact: | kgiedrius@gmail.com (Giedrius Korsakas) |
Package Create Date: | 2016-07-25 |
Package Last Update: | 2016-08-19 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-19 03:25:59 |
Package Statistics | |
---|---|
Total Downloads: | 29 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 0 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Just like the database queue driver, but process jobs in random order.
Require the latest version of this package with Composer
composer require KGiedrius/laravel-random-job-database-queue-driver:"1.x"
Add the Service Provider to the providers array in config/app.php
KGiedrius\Queue\DbRandServiceProvider::class,
You need to create the migration table for queues and run it.
$ php artisan queue:table
$ php artisan migrate
In config/queue.php.
'default' => 'DbRand',
'connections' => array(
'DbRand' => array(
'driver' => 'DbRand',
'table' => 'jobs',
'queue' => 'default',
'expire' => 60,
),
...
}
For more info see http://laravel.com/docs/queues