Example #1
0
 public function logout()
 {
     if (Auth::check()) {
         Auth::logout();
     }
     //redirect to home page
     redirect();
 }
Example #2
0
 public function action_logout()
 {
     // remove the remember-me cookie, we logged-out on purpose
     Auth::dont_remember_me();
     // logout
     Auth::logout();
     // inform the user the logout was successful
     //\Messages::success(__('login.logged-out'));
     // and go back to where you came from (or the application
     // homepage if no previous page can be determined)
     Response::redirect('');
 }
Example #3
0
 public function action_signout()
 {
     Auth::dont_remember_me();
     Auth::logout();
     Response::redirect('/admin/signin');
 }