Skip to content

Commit

Permalink
[8.x] Support delaying notifications by channel
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Nov 18, 2020
1 parent 910d5ed commit 664e87f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Notifications/NotificationSender.php
Expand Up @@ -202,7 +202,9 @@ protected function queueNotification($notifiables, $notification)
(new SendQueuedNotifications($notifiable, $notification, [$channel]))
->onConnection($notification->connection)
->onQueue($queue)
->delay($notification->delay)
->delay(
is_array($notification->delay) ? $notification->delay[$channel] ?? null : $notification->delay
)
->through(
array_merge(
method_exists($notification, 'middleware') ? $notification->middleware() : [],
Expand Down

0 comments on commit 664e87f

Please sign in to comment.