Answer the question
In order to leave comments, you need to log in
How to start a separate listener for a queue?
Good afternoon. I have 2 types of queue, one sends emails, the other push notifications. I use a database as a driver.
$job = (new SendReminderEmail($user))->onQueue('emails');
$this->dispatch($job)
php artisan queue:work database--daemon --sleep=3 --tries=3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question