阅读(2388)
赞(4)
Laravel 8 camel {#collection-method}
2021-07-03 16:54:27 更新
camel
方法将指定字符串转换为 驼峰式
表示方法:
use Illuminate\Support\Str;
$converted = Str::of('foo_bar')->camel();
// fooBar
camel
方法将指定字符串转换为 驼峰式
表示方法:
use Illuminate\Support\Str;
$converted = Str::of('foo_bar')->camel();
// fooBar
Copyright©2023 编程论坛编程论坛| 浙ICP备2024059924号-1|
违法和不良信息举报电话:|举报邮箱:569242693@qq.com