Laravel Mysql Queue Driver
Installation
- Run:
composer require lukaszaleckas/laravel-mysql-queue
Service provider should be automatically registered, if not add
LaravelMysqlQueue\MysqlQueueServiceProvider::class
to application's your app.php
.
- Add Mysql's connection to your
queue.php
config:
'mysql' => [
'driver' => 'mysql',
'default_queue' => 'default',
'connection' => 'mysql',
'lock_name_prefix' => 'mysql_queue_',
'lock_timeout' => 60
]