阅读(2840) (6)

Laravel 8 Str::studly()

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

Str::studly 方法将带有 _的字符串转换成驼峰命名的字符串,与 Str::snake() 相反,例如:

use IlluminateSupportStr;

$converted = Str::studly('foo_bar');

// FooBar