/**
  * clear session. deletes user assigned web token
  * @param $request
  * @return Response
  */
 public function logout(Request $request)
 {
     $token = $request['token'];
     //if(Auth::check()) return response()->json('nka login lage ka?', 200);
     if (!$token) {
         return response()->json('empty token', 400);
     }
     //dd(UserSessionHandler::getByToken($token), \Session::all());
     if (UserSessionHandler::check($token)) {
         Auth::logout();
         UserSessionHandler::logout($token);
         return response()->json('user logged out..', 200);
     } else {
         return response()->json('invalid token to be logged out!', 401);
     }
 }