https://laracasts.com/discuss/channels/laravel/laravel-53-multi-auth-how-can-i-make-it-work
Maybe this weekend i will end my package to easy setup multi-auth. For now you have to use the topic above.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Please help me with this problem. i created an application using laravel 5.3. i need to make 3 user types, AdminSUper, Admin, and User. i have already create 3 guards with three different tables. I also make three different login pages for each user type. THE PROBLEM IS, Laravel Authentication always redirect all those three user to the same login page/url when they are loging out!!!. unlike Laravel 5.2, we can specify the " redirectAfterLogout" in the AuthCotroller so that each user types will be redirected to the different url of the login page that we have specified in the AuthCotroller .
i have exemined, and i foud the probliem is in the "Handler.php" inside "App\Exceptions" namespace. actually in the method
protected function unauthenticated($request, AuthenticationException $exception) { if ($request->expectsJson()) { return response()->json(['error' => 'Unauthenticated.'], 401); }
return redirect()->guest('login');
}
did someone has found the same issue? Please help.
Please or to participate in this conversation.