diff --git a/src/PusherChannel.php b/src/PusherChannel.php index 4498d7b..7b6795d 100644 --- a/src/PusherChannel.php +++ b/src/PusherChannel.php @@ -2,10 +2,10 @@ namespace NotificationChannels\PusherPushNotifications; -use Pusher\Pusher; use Illuminate\Events\Dispatcher; -use Illuminate\Notifications\Notification; use Illuminate\Notifications\Events\NotificationFailed; +use Illuminate\Notifications\Notification; +use Pusher\Pusher; class PusherChannel { @@ -48,7 +48,7 @@ public function send($notifiable, Notification $notification) ); if (! in_array($response['status'], [200, 202])) { - $this->events->fire( + $this->events->dispatch( new NotificationFailed($notifiable, $notification, 'pusher-push-notifications', $response) ); }