Laravel on-demand notification delay
Published in
1 min readJan 26, 2020
Notification is a short and informational message that notifies a user.
php artisan make:notification OrderComplete
implements ShouldQueue and trait Queueable
Now call the notification inside your controller or others file.
use App\Notifications\OrderComplete;Notification::route('mail', 'hiremostafa@gmail.com')
->notify(
(new OrderComplete())->delay(now()>addMinutes(1))
);
~ Setup queue environment (Queue)