论坛系统邮件消息完全发不出去是怎么回事哦?
是这样的。
use App\Models\Reply;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
class TopicReplied extends Notification implements ShouldQueue
{
use Queueable;
public $reply;
/**
* Create a new notification instance.
*
* @return void
*/
public function __construct(Reply $reply)
{
$this->reply = $reply;
}
.class TopicReplied extends Notification的话,回复 了可以正常发邮件,当然是同步的,如果用class TopicReplied extends Notification implements ShouldQueue回复正常,邮件根本发不出去,不知道是哪里的原因哦?我的是win7 安装的laragon
推荐文章: