From 03b4ac87ffb8412affe7bc19780f29c11383f1f5 Mon Sep 17 00:00:00 2001 From: Aaron Huisinga Date: Fri, 23 Feb 2018 09:05:35 -0500 Subject: [PATCH] Allow notification routing to depend on notification being sent This adds support for the feature added in Laravel 5.6 for routing based on the notification being sent (https://github.com/laravel/framework/pull/22289). --- src/GcmChannel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GcmChannel.php b/src/GcmChannel.php index 2252c01..07d20c1 100644 --- a/src/GcmChannel.php +++ b/src/GcmChannel.php @@ -38,7 +38,7 @@ public function __construct(Client $client, Dispatcher $events) */ public function send($notifiable, Notification $notification) { - $tokens = (array) $notifiable->routeNotificationFor('gcm'); + $tokens = (array) $notifiable->routeNotificationFor('gcm', $notification); if (empty($tokens)) { return; }