i need to specify redirection depent on which user is authentified. I add a column in the default laravel users table : "is_admin" with values "1" and "0"
In my controller i tried :
if(Auth::user()->is_admin=1){
return view('index');
}
else {
return view('auth.login');
};
But seem's my condition always true even if the auth has is_admin =0
How can i solve that problem ? Is there a better way to do this condition ? thanks