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

slugify Modifier

Converts the string into an URL slug. This includes replacing non-ASCII characters with their closest ASCII equivalents, removing remaining non-ASCII
and non-alphanumeric characters, and replacing whitespace with dashes. And then everything is lowercased.

string: Please, have some lemoñade.
{{ string | slugify }}
{{ Statamic::modify($string)->slugify() }}
please-have-some-lemonade
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →