Exemplo n.º 1
0
 /**
  * Destroy session hash for the logged in user
  *
  * @param Request $request
  * @return Bool
  */
 protected function destroySessionUser(Request $request)
 {
     $hash = $request->header('X-SESSION-ID');
     $session = Session::whereHash($hash)->first();
     if (!$session) {
         return false;
     }
     return Session::destroy($session->id) > 0;
 }