From 82f49a9f8b44b897e0f59109e3460dd144043050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heath=20Dutton=20=E2=98=95?= Date: Mon, 2 Dec 2019 17:48:19 -0500 Subject: [PATCH 1/2] Correct for Laravel 5.8 deprecation Use dispatch() instead of deprecated fire() method. --- src/PusherChannel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PusherChannel.php b/src/PusherChannel.php index 4498d7b..2b96758 100644 --- a/src/PusherChannel.php +++ b/src/PusherChannel.php @@ -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) ); } From 50012d19b95fc1d27071b067b14938b2bc8251a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heath=20Dutton=20=E2=98=95?= Date: Mon, 2 Dec 2019 17:50:51 -0500 Subject: [PATCH 2/2] StyleCI corrections. --- src/PusherChannel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PusherChannel.php b/src/PusherChannel.php index 2b96758..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 {