阅读(4742)
赞(6)
Laravel 8 kebab {#collection-method}
2021-07-05 09:43:49 更新
kebab
方法将指定字符串转换为 烤串式( kebab-case )
表示形式:
use IlluminateSupportStr;
$converted = Str::of('fooBar')->kebab();
// foo-bar
kebab
方法将指定字符串转换为 烤串式( kebab-case )
表示形式:
use IlluminateSupportStr;
$converted = Str::of('fooBar')->kebab();
// foo-bar
Copyright©2023 字节宝| |
违法和不良信息举报电话:|举报邮箱:2283035678@qq.com