From 0970ad8bebf6409d5310644f5a0b4af1a56cb024 Mon Sep 17 00:00:00 2001 From: MohamedBenhida Date: Fri, 22 Nov 2019 12:48:43 +0100 Subject: [PATCH] updates for Laravel 5.7+ --- src/Auth/Guard.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Auth/Guard.php b/src/Auth/Guard.php index dae0ae1..06c7917 100644 --- a/src/Auth/Guard.php +++ b/src/Auth/Guard.php @@ -125,7 +125,7 @@ protected function fireAttemptEvent(array $credentials) { if (isset($this->events)) { $this->events->dispatch(new Attempting( - $credentials, false + $this->name, $credentials, false )); } } @@ -140,7 +140,7 @@ protected function fireAttemptEvent(array $credentials) protected function fireFailedEvent($user, array $credentials) { if (isset($this->events)) { - $this->events->dispatch(new Failed($user, $credentials)); + $this->events->dispatch(new Failed($this->name, $user, $credentials)); } } @@ -154,7 +154,7 @@ protected function fireFailedEvent($user, array $credentials) protected function fireLoginEvent($user) { if (isset($this->events)) { - $this->events->dispatch(new Login($user, false)); + $this->events->dispatch(new Login($this->name, $user, false)); } } @@ -489,4 +489,4 @@ public function getToken() return $this->token; } -} \ No newline at end of file +}