Eloquence\Behaviours\CamelCasing::toCamelCase PHP Method

toCamelCase() public method

Converts a given array of attribute keys to the casing required by CamelCaseModel.
public toCamelCase ( mixed $attributes ) : array
$attributes mixed
return array
    public function toCamelCase($attributes)
    {
        $convertedAttributes = [];
        foreach ($attributes as $key => $value) {
            $key = $this->getTrueKey($key);
            $convertedAttributes[$key] = $value;
        }
        return $convertedAttributes;
    }