/** * [parseResponse description] * @param [type] $response [description] * @return [type] [description] */ protected function parseResponse($response) { if (!$response instanceof Response) { return $response; } if ($this->dataType == 'json') { return $response->json(); } else { if ($this->dataType == 'xml') { return $response->xml(); } } return $response->getBody(); }
/** * report armada harian. * * @return */ public function reportjson(Request $request) { return $this->reports->json($request); }