这对我有用.
@H_502_7@//code to be used in the controller (taken from @jedrzej.kurylo above)
$job = (new SendReminderEmail($user))->onQueue('emails');
$this->dispatch($job);
我认为这会将作业发送到名为“emails”的队列.
要执行在“电子邮件”队列中分派的作业: