重写 notify () 方法后导致无法发送邮箱验证邮件
public function notify($instance)
{
if(method_exists($instance, 'toDatabase')){
// 被通知的人如果是自身就停止通知
if($this->id == Auth::id()){
return;
}
$this->increment('notification_count');
}
$this->laravelNotify($instance);
}
然后将邮箱验证通知也加入队列
推荐文章: