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.
ucfirst
ModifierConverts the first character of a string to upper case.
string: i wanna go home.
{{ string | ucfirst }}
{{ Statamic::modify($string)->ucfirst() }}
I wanna go home.
Submit improvements, related content, or suggestions through Github.
Betterify this page →