In a standard task, I use this method to submit a task:
dispatch(new PurchaseJob($trxId, $method, $params));
Next, I want to send another job to send email, but I want to split it into another separate queue. From what I read in the Laravel 5.5 docs, I could do this:
SendEmailJob::dispatch($userEmail)->onQueue('send_email');
But this does not work on Lumen 5.5.
What can I do to make this work, or is there any other method that is not listed in the docs?
source
share