Ejemplo n.º 1
0
 /**
  * [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();
 }
Ejemplo n.º 2
0
 /**
  * report armada harian.
  *
  * @return
  */
 public function reportjson(Request $request)
 {
     return $this->reports->json($request);
 }