Exemplo n.º 1
0
 /**
  * Process the request and replace the input
  *
  * @param $route
  * @param $request
  * @return void
  */
 public function preprocessRequest($route, $request)
 {
     $input = REST::convertCase($request->all(), 'snakeCase');
     $input = $this->handleRequest($input);
     $request->replace($input);
 }
Exemplo n.º 2
0
 /**
  * Convert the array keys to wanted case format.
  *
  * @param array $data
  * @return array
  */
 public function dehydrate(array $data)
 {
     return REST::convertCase($data);
 }