/** * 登出方法 */ public function logout() { $is_doctor = he_is('doctor'); log_him_out(); Session::forget('username'); if (!$is_doctor) { return redirect('/'); } return redirect('/doctor/home'); }
/** * 登出方法 */ 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'); }