/**
  * 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);
 }
 /**
  * Convert the array keys to wanted case format.
  *
  * @param array $data
  * @return array
  */
 public function dehydrate(array $data)
 {
     return REST::convertCase($data);
 }