Php 异步调用内置的notify方法以发送电子邮件Laravel

Php 异步调用内置的notify方法以发送电子邮件Laravel,php,laravel,web,Php,Laravel,Web,我有来自Laravel的内置身份验证系统和我自己的ResetPasswordNotification。 我在用户模型中重写了sendPasswordResetNotification方法 use App\Notifications\ResetPassword as ResetPasswordNotification; public function sendPasswordResetNotification($token) { $this->notify(new ResetPass

我有来自Laravel的内置身份验证系统和我自己的ResetPasswordNotification。 我在用户模型中重写了sendPasswordResetNotification方法

use App\Notifications\ResetPassword as ResetPasswordNotification;
public function sendPasswordResetNotification($token) {
    $this->notify(new ResetPasswordNotification($token));
}
根据文档,消息应该是异步发送的(我在某个地方读到过),但这种情况不会发生

我正在考虑创建一个单独的作业来运行“notify”命令。你觉得这个主意怎么样

在AnonymousNotifiable.php中实现了notify方法,我实际上调用了该方法

public function notify($notification)
{
    app(Dispatcher::class)->send($this, $notification);
}
在查看了遗传层次结构中的方法之后,我确信这就是发送电子邮件的方法