I want to queue and send mails with database based queue driver. I can send emails with that:
Mail::to('someone@example.com')->send(new ForgotPassword($first_name, $link));
This also works (I see that a row is inserted in jobs table).
Mail::to('someone@example.com')->queue(new ForgotPassword($first_name, $link));
But I couldn't find the way to run queues and send emails in the background. This not working.
php artisan queue:work
How can I do that?
Note: It is Laravel 5.4.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community