public function toSnakeCase($attributes) { $convertedAttributes = []; foreach ($attributes as $key => $value) { $convertedAttributes[$this->getSnakeKey($key)] = $value; } return $convertedAttributes; }