Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

Ucfirst Modifier

Converts the first character of a string to upper case.

string: i wanna go home.
{{ string | ucfirst }}
{{ Statamic::modify($string)->ucfirst() }}
I wanna go home.