Hesto/multi-auth

Not redirecting to the right Login view

Opened this issue · 2 comments

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?

hi @alexandrepc112

you will find the solution here #50

Remove auth:admin middleware from mapAdminRoutes function in app\Providers\RouteServiceProvider.php