camelize Modifier

Returns a camelCase version of a string. Trims surrounding spaces, capitalizes letters following digits, spaces, dashes and underscores, and removes spaces, dashes and underscores. It's a programmer-type thing, great for converting between code styles.

method: make_everything_better
{{ method | camelize }}
{{ Statamic::modify($method)->camelize() }}
makeEverythingBetter
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →