Closed randycasburn closed 7 years ago
Hi @randycasburn
Did you see?
protected function authenticated(Request $request, $user)
{
if ($user->hasRole('admin')) {
return redirect('/admin');
}
return redirect('home');
}
If the user has admin role then it will be automatically redirected to admin route.
I suppose I missed that work flow. I'll close this.
Please consider changing:
protected $redirectTo = '/home';
toprotected $redirectTo = '/admin';
in app/Http/Controllers/Auth/LoginController.phpThanks.