Skip to content

Commit 9165e26

Browse files
committed
Overwrite recipients from Model
1 parent 67f588f commit 9165e26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/MessagebirdChannel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public function send($notifiable, Notification $notification)
3030
$message = MessagebirdMessage::create($message);
3131
}
3232

33+
if ($to = $notifiable->routeNotificationFor('messagebird')) {
34+
$message->setRecipients($to);
35+
}
36+
3337
$this->client->send($message);
3438
}
3539
}

0 commit comments

Comments
 (0)