From 9cb34e479ebd0853a35ea974bd572735c8886ba6 Mon Sep 17 00:00:00 2001 From: Aaron Huisinga Date: Fri, 23 Feb 2018 09:04:54 -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/ApnChannel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApnChannel.php b/src/ApnChannel.php index ae46bc3..99ee5dc 100644 --- a/src/ApnChannel.php +++ b/src/ApnChannel.php @@ -64,7 +64,7 @@ public function __construct( */ public function send($notifiable, Notification $notification) { - $tokens = (array) $notifiable->routeNotificationFor('apn'); + $tokens = (array) $notifiable->routeNotificationFor('apn', $notification); if (empty($tokens)) { return; }