src/Traits/ConvertsParameters.php
protected function convertArrayToSnakeCase(array $input):array
    {
        $converted = [];

        foreach ($input as $key => $value) {
            $converted[snake_case($key)] = $value;
        }

        return $converted;
    }
protected function convertArrayToSnakeCase(array $input):array
    {
        $converted = [];

        foreach ($input as $key => $value) {
            $converted[snake_case($key)] = $value;
        }

        return $converted;
    }
protected function convertArrayToSnakeCase ( array $ input ) : array { $ converted = [ ] ; foreach ( $ input as $ key => $ value ) { $ converted [ snake_case ( $ key ) ] = $ value ; } return $ converted ; }
Convert all keys of an array to snake case.

@param  array $input
@return array
Convert all keys of an array to snake case .