Laravel 4.2: not able to log out user -
i trying logout user:
public function getsignout() { auth::logout(); homecoming redirect::to('/'); }
however, when hits route:
route::get('/', function() { if(auth::check()){ homecoming 'logged in'; }else { homecoming 'not logged in'; } });
it returns user still logged in. problem , in advance helping prepare problem.
laravel
No comments:
Post a Comment