'Delay Laravel Notification By Certain Time using Notifcation::send() facade
How do I delay notifications using the notification Facade in Laravel
Notification::send($users,new AccountRegistered($user))->delay();
the above doesn't seem to exist
Solution 1:[1]
In the AccountRegistered notification class, you can update the $delay property and set it's value in seconds;
public function __construct()
{
$this->delay(15);
}
Or call it after initializing the object:
Notification::send($users, (new AccountRegistered($user))->delay(15));
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
