Laravel 8 Str::studly()
Str::studly
方法将带有 _
的字符串转换成驼峰命名的字符串,与 Str::snake()
相反,例如:
use Illuminate\Support\Str;
$converted = Str::studly('foo_bar');
// FooBar
Str::studly
方法将带有 _
的字符串转换成驼峰命名的字符串,与 Str::snake()
相反,例如:
use Illuminate\Support\Str;
$converted = Str::studly('foo_bar');
// FooBar