Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

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