src/Http/Middleware/ConvertToSnakeCase.php
protected function cleanArray(array $data)
    {
        $parameters = [];

        foreach ($data as $key => $value) {
            $parameters[in_array($key, $this->except) ? $key : snake_case($key)] = $value;
        }

        return $parameters;
    }
protected function cleanArray(array $data)
    {
        $parameters = [];

        foreach ($data as $key => $value) {
            $parameters[in_array($key, $this->except) ? $key : snake_case($key)] = $value;
        }

        return $parameters;
    }
Clean the data in the given array.

@param  array $data
@return array