Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

EmilMoe's avatar
Level 10

Queue, nothing happens

I have migrated the jobs table and trying to create a queue on the database driver (local run). But when I run either queue:listen or queue:work absolutely nothing happens.

I have a job or 2 in the database of course.

I assume that attempts should increase or the job removed or something.

0 likes
3 replies
tehnicom's avatar

Did you check for any errors in storage/logs/laravel.log?

1 like
z900collector's avatar

To use Laravel Queuing with the database table "jobs", you should set the QUEUE_DRIVER to 'database' not sync in your .env file, then in your Job implement the correct queue traits, after that the Job will just be dispatched to the database table jobs and then you can have the "php artisan queue:work" command run and process the jobs. It works very well.

cesarfp's avatar

My queue did not process my jobs in database, but thanks to @tehnicom suggestion I see that my view, that I was sending as email, had unknown variable that was causing an error.

Queues are very simple. I followed this tuto: https://youtu.be/fFy-s7_SbYM

Please or to participate in this conversation.