src/CamelCaseJsonResponseFactory.php
public function encodeArray($array)
    {
        $newArray = [];
        foreach ($array as $key => $val) {
            $newArray[\camel_case($key)] = $this->encodeJson($val);
        }
        return $newArray;
    }
public function encodeArray($array)
    {
        $newArray = [];
        foreach ($array as $key => $val) {
            $newArray[\camel_case($key)] = $this->encodeJson($val);
        }
        return $newArray;
    }
public function encodeArray ( $ array ) { $ newArray = [ ] ; foreach ( $ array as $ key => $ val ) { $ newArray [ \ camel_case ( $ key ) ] = $ this -> encodeJson ( $ val ) ; } return $ newArray ; }
Encode an array
Encode an array