예제 #1
0
 public function postChangeSessionAdmin()
 {
     if (Request::ajax()) {
         Session::forget("organizatie_noua");
         if (Session::has('session_changed')) {
             Session::forget('session_changed');
             Auth::loginUsingId(1);
             Confide::getDepartamente();
             return 1;
         }
         return 0;
     }
     return 0;
 }