Skip to content

Commit

Permalink
Fix queueable notification's id overwritten (#42581)
Browse files Browse the repository at this point in the history
When the notification ID has been assigned, It should not be overwritten. Even in the queue.
  • Loading branch information
jay-youngn authored Jun 1, 2022
1 parent 702c119 commit ee26981
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Notifications/NotificationSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ protected function queueNotification($notifiables, $notification)
foreach ((array) $original->via($notifiable) as $channel) {
$notification = clone $original;

$notification->id = $notificationId;
if (! $notification->id) {
$notification->id = $notificationId;
}

if (! is_null($this->locale)) {
$notification->locale = $this->locale;
Expand Down

0 comments on commit ee26981

Please sign in to comment.