Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Bought Jack McDade's course on design. Going through it now...and it is SO well done!

— Justin Jackson, Transistor.fm

underscored Modifier

Returns a lowercase and trimmed string separated by underscores.
Underscores are inserted before uppercase characters (with the exception
of the first character of the string), and in place of spaces as well as dashes.

string: Please and thank you
{{ string | underscored }}
{{ Statamic::modify($string)->underscored() }}
please_and_thank_you
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →