阅读(4732)
赞(3)
Laravel 8 kebab {#collection-method}
2021-07-05 09:43:49 更新
kebab
方法将指定字符串转换为 烤串式( kebab-case )
表示形式:
use Illuminate\Support\Str;
$converted = Str::of('fooBar')->kebab();
// foo-bar
kebab
方法将指定字符串转换为 烤串式( kebab-case )
表示形式:
use Illuminate\Support\Str;
$converted = Str::of('fooBar')->kebab();
// foo-bar
Copyright©2023 编程论坛编程论坛| 浙ICP备2024059924号-1|
违法和不良信息举报电话:|举报邮箱:569242693@qq.com