阅读(173) (9)

Laravel 8 Str::title()

2021-07-03 16:54:23 更新

Str::title 方法是把指定的字符串,每个单词首字母大写,例如:

use Illuminate\Support\Str;

$converted = Str::title('a nice title uses the correct case');

// A Nice Title Uses The Correct Case