Laravel 8 Str::title()
Str::title
方法是把指定的字符串,每个单词首字母大写,例如:
use Illuminate\Support\Str;
$converted = Str::title('a nice title uses the correct case');
// A Nice Title Uses The Correct Case
Str::title
方法是把指定的字符串,每个单词首字母大写,例如:
use Illuminate\Support\Str;
$converted = Str::title('a nice title uses the correct case');
// A Nice Title Uses The Correct Case