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