/** * логаут * @return \Response */ public function logout() { $api = new Api(); $key = Input::get('key'); if (!$key) { $key = $api->key(); } try { $api->Logout($key); return $this->responseSuccess([], 'Сессия остановлена'); } catch (\Exception $e) { return $this->responseException($e, 'Ошибка удаления сессии'); } }