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)) {