Skip to content

Commit

Permalink
Support job middleware for queued notifications (#30070)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshgurusamy authored and taylorotwell committed Sep 30, 2019
1 parent a52a0dd commit 2a2dce5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Illuminate/Notifications/NotificationSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ protected function queueNotification($notifiables, $notification)
->onConnection($notification->connection)
->onQueue($notification->queue)
->delay($notification->delay)
->through(
array_merge(
method_exists($notification, 'middleware') ? $notification->middleware() : [],
$notification->middleware ?? []
)
)
);
}
}
Expand Down

0 comments on commit 2a2dce5

Please sign in to comment.