1protected function authenticated(Request $request, User $user)
2{
3 if ($user->admin()) {
4 // an admin
5 $redirect = '/admin';
6 } elseif ($user->manager()) {
7 // it's a manager
8 $redirect = '/manager/home';
9 } else {
10 // it's a user
11 $redirect = '/dashboard';
12 }
13 return redirect($redirect);
14}
15