So, I have users table which is default by laravel. But I add a new column named \'status\'.
So the columns on the users table are id, name, email, password, remember_token
By default, The laravel redirect to "authenticated" function after login. So you can add "authenticated" function in "LoginController". In the "authenticated" function will get the user object.
protected function authenticated(Request $request, $user)
{
if (!$user->status == 1) {
return redirect('admin');
}
return redirect('web');
}