user10975763
user10975763

Reputation:

Laravel Queues Not adding Jobs in Database

I have enabled Laravel Queues but the Jobs is not adding inside mine database:

here is the steps what i have follow:

php artisan queue:table

php artisan migrate

in .env file i have changed QUEUE_CONNECTION=database

In mine controller:

    CreateCoinImage::dispatch()
                ->delay(now()->addMinutes(1));

Do anyone know why the Queues is not working

Upvotes: 3

Views: 1947

Answers (2)

VIKAS KATARIYA
VIKAS KATARIYA

Reputation: 6005

.env file you should change queue_driver from sync to database

queue_driver=database

OR

QUEUE_CONNECTION=database

create queue table in your database with artisan command :

php artisan queue:table
php artisan migrate
php artisan queue:work 

Upvotes: 1

Kurt Chun
Kurt Chun

Reputation: 411

When you want to use queue:table, make sure your .env file has register the queue driver to database

QUEUE_DRIVER=database

Upvotes: 0

Related Questions