Skip to content

Commit 8439991

Browse files
authored
Add channel name to NotificationFailed event
Had to look up the source of NotificationFailed and saw that the third parameter should be the name of the channel (https://github.com/laravel/framework/blob/master/src/Illuminate/Notifications/Events/NotificationFailed.php#L40).
1 parent 286f9f4 commit 8439991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PusherChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function send($notifiable, Notification $notification)
4949

5050
if (! in_array($response['status'], [200, 202])) {
5151
$this->events->fire(
52-
new NotificationFailed($notifiable, $notification, $response)
52+
new NotificationFailed($notifiable, $notification, 'pusher-push-notifications', $response)
5353
);
5454
}
5555
}

0 commit comments

Comments
 (0)