Not redirecting to the right Login view
Opened this issue · 2 comments
alexandrepc112 commented
I guys, I have 3 types of users in my app: Admins and Alunos(alunos means students in Portuguese) and parents.
When I try to access "/admin/home" when I'm not logged in as an Admin, the app redirects me to "/aluno/login" instead of redirecting to "/admin/login". The same thing happens with the parents login.
Can someone help me?
abdulmananse commented
Remove auth:admin middleware from mapAdminRoutes function in app\Providers\RouteServiceProvider.php