From 95a2d38ee8aaef0339bf8f5b4e1998e8a4209156 Mon Sep 17 00:00:00 2001 From: Ilya Savinkov Date: Fri, 8 Oct 2021 10:19:24 +0300 Subject: [PATCH] Include exception into the NotificationFailed event --- src/PusherChannel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PusherChannel.php b/src/PusherChannel.php index ec30bbd..ae617bb 100644 --- a/src/PusherChannel.php +++ b/src/PusherChannel.php @@ -61,7 +61,7 @@ public function send($notifiable, Notification $notification) ); } catch (Throwable $exception) { $this->events->dispatch( - new NotificationFailed($notifiable, $notification, 'pusher-push-notifications') + new NotificationFailed($notifiable, $notification, 'pusher-push-notifications', ['exception' => $exception]) ); } }