I need after check if user is logged as editor, to redirect to profile page...
Here is my code:
I found this to be a less code and less decisions for redirecting users based on roles, Put this in your AuthController.php
protected function authenticated( $user)
{
if($user->user_group == '0') {
return redirect('/dashboard');
}
return redirect('my-account');
}
https://laracasts.com/discuss/channels/laravel/how-best-to-redirect-admins-from-users-after-login-authentication