Laravel 8 title {#collection-method}
title
方法将字符串转换为 标题式
表示方法:
use Illuminate\Support\Str;
$converted = Str::of('a nice title uses the correct case')->title();
// A Nice Title Uses The Correct Case
title
方法将字符串转换为 标题式
表示方法:
use Illuminate\Support\Str;
$converted = Str::of('a nice title uses the correct case')->title();
// A Nice Title Uses The Correct Case