文书工作问题 - Swift_TransportException 'Cannot send message without a sender address'

Paperwork issues - Swift_TransportException 'Cannot send message without a sender address'

我有一台来自 GitHub 的虚拟机 运行ning 文书工作,我在我的组织中使用它供用户写笔记,但现在我 运行 遇到了一个问题密码恢复,当我尝试要求密码恢复时,发生了这种情况:

我从 swift 邮件程序中收到 'Cannot send message without a sender address' 异常,我似乎无法找到设置发件人地址的位置。

我尝试在 message.php 的消息创建函数中将发件人指定为 $this->setFrom('email@example.com'); 这使异常消失,但我没有收到任何发送到我的收件箱的密码恢复邮件。

您需要确保在 app/config/mail.php

中设置了 from
'from' => ['address' => 'myname@gmail.com', 'name' => 'myname']

并且不要忘记在之后执行 php artisan config:cache