From b287ca61a94f6c8b10f364cda729a3bf53521d34 Mon Sep 17 00:00:00 2001 From: Eduard Duran Date: Fri, 2 Feb 2024 15:35:23 +0100 Subject: [PATCH] added notification to notifiable route --- src/GoogleChatChannel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GoogleChatChannel.php b/src/GoogleChatChannel.php index 74bab17..a9be64d 100644 --- a/src/GoogleChatChannel.php +++ b/src/GoogleChatChannel.php @@ -47,7 +47,7 @@ public function send($notifiable, Notification $notification) } $space = $message->getSpace() - ?? $notifiable->routeNotificationFor('googleChat') + ?? $notifiable->routeNotificationFor('googleChat', $notification) ?? config('google-chat.space'); if (! $endpoint = config("google-chat.spaces.$space", $space)) {