I try:
php artisan queue:listen
But the result is a empty: picture of result
What should happen?
I want it to execute the code:
$job = (new SendEmail())->delay(10);
$this->dispatch($job);
That's what should happen. It means it's waiting for something to be pushed to the queue.
If you carry out an action that pushes something to the queue, through an event or job etc. then you will see something like
-bash-4.1$ php artisan queue:listen
[2016-07-22 09:27:57] Processed: App\Listeners\Users\SendWelcomeEmail@handle
Have you definitely set up the correct queue driver (e.g. database
) in your .env or config/queue.php
file?