Convert a string to title case $title = Str::title('taylor otwell'); Convert a multi-byte string to title case $title = Str::title('νωθρού κυνός');
public function title($string) { return MB_STRING ? mb_convert_case($string, MB_CASE_TITLE, $this->encoding) : ucwords($this->lower($string)); }