阅读(3768)
赞(6)
Laravel 8 snake {#collection-method}
2021-07-05 09:43:53 更新
snake
方法用于将字符串转换为 蛇形命名方式
:
use IlluminateSupportStr;
$converted = Str::of('fooBar')->snake();
// foo_bar
snake
方法用于将字符串转换为 蛇形命名方式
:
use IlluminateSupportStr;
$converted = Str::of('fooBar')->snake();
// foo_bar
Copyright©2023 字节宝| |
违法和不良信息举报电话:|举报邮箱:2283035678@qq.com