如何使用Laravel中的通知Facade延迟通知
Notification::send($users,new AccountRegistered($user))->delay();
上述内容似乎不存在
在AccountRegistered
通知类中,您可以更新$delay
属性并设置其以秒为单位的值;
public function __construct()
{
$this->delay(15);
}
或者在初始化对象后调用:
Notification::send($users, (new AccountRegistered($user))->delay(15));