Laravel queues not working
for use queue you should some work :
in .env file you should change queue_driver from sync to database, so open .env and do the follow
queue_driver=database
after it you should create queue table in your database with artisan command :
php artisan queue:table
php artisan migrate
and finally you should run your queue with php artisan queue:listen
or php artisan queue:work
I had the same trouble, if you are using laravel 5.7, use this in .env file
QUEUE_CONNECTION=database
after, clear config cache like this
php artisan config:cache
Update for Laravel 5.7:
In .env
, set QUEUE_CONNECTION=database
so that dispatched jobs go to the database driver.
Then:
# Creates a migration for the database table holding the jobs
php artisan queue:table
# Executes the migration
php artisan migrate
# Kicks off the process that executes jobs when they are dispatched
php artisan queue:work