2 months ago

Laravel Queue - dispatch method

Posted 2 months ago by Vardhan_KSPL

I have used following code in controller :-

dispatch(new SendEmail());

where SendEmail implements ShouldQueue. It contains handle method which sends an email.

Now, I run following command in terminal :-

php artisan queue:work

When the controller runs, dispatch method does execute and an email is sent as required. But the terminal doesn't show any response for the mentioned command.

Please sign in or create an account to participate in this conversation.