From adcf0c9fee77d951799bc953b3c1dc26f52af8a6 Mon Sep 17 00:00:00 2001 From: Oreo Oreoniv <28255085+zKoz210@users.noreply.github.com> Date: Wed, 28 Nov 2018 23:24:43 +0300 Subject: [PATCH] Fixed Failed event Thank you very much Laravel for not pointing out the changes to be made when upgrading from 5.6 to 5.7 --- app/Http/Controllers/Auth/LoginController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index 127802d22..d00b22faa 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -242,6 +242,6 @@ class LoginController extends Controller */ private function fireFailedLoginEvent(Authenticatable $user = null, array $credentials = []) { - event(new Failed($user, $credentials)); + event(new Failed(config('auth.defaults.guard'), $user, $credentials)); } }