Esempio n. 1
0
 /**
  * 登出方法
  */
 public function logout()
 {
     $is_doctor = he_is('doctor');
     log_him_out();
     Session::forget('username');
     if (!$is_doctor) {
         return redirect('/');
     }
     return redirect('/doctor/home');
 }
Esempio n. 2
0
 /**
  * 登出方法
  */
 public function logout()
 {
     $is_doctor = he_is('doctor');
     log_him_out();
     Session::forget(['username', 'org']);
     if (!$is_doctor) {
         return Redirect::to(env('APP_URL'));
     }
     return Redirect::to(env('APP_URL') . '/doctor/home');
 }