我正在尝试发送延迟消息,但它不起作用,它进入了作业表,但它仍然存在。这是我的代码:
Mail::later(5, 'emails.test', ['testVar' => 'hello'], function ($message){
$message->to('*someaddress@hotmail.com', 'Someone');
$message->subject('Subject');
});
*:我使用真实地址
emails.test:
<p> This is a test, an email test. </p>
.env:
QUEUE_DRIVER=database
当我使用send而不是later时,消息会完美发送。
我是否需要修改更多内容才能使其正常工作?