diff --git a/notifications.md b/notifications.md index 9d0a507e27..6d51ce676c 100644 --- a/notifications.md +++ b/notifications.md @@ -144,9 +144,16 @@ Once the `ShouldQueue` interface has been added to your notification, you may se If you would like to delay the delivery of the notification, you may chain the `delay` method onto your notification instantiation: - $when = now()->addMinutes(10); + $delay = now()->addMinutes(10); - $user->notify((new InvoicePaid($invoice))->delay($when)); + $user->notify((new InvoicePaid($invoice))->delay($delay)); + +You may pass an array to the `delay` method to specify the delay amount for specific channels: + + $user->notify((new InvoicePaid($invoice))->delay([ + 'mail' => now()->addMinutes(5), + 'sms' => now()->addMinutes(10), + ])); #### Customizing Notification Channel Queues