阅读(1027)
赞(6)
Laravel 8 slug {#collection-method}
2021-07-05 09:43:53 更新
slug
方法使用指定字符将字符串格式化为 URL 友好的格式:
use IlluminateSupportStr;
$slug = Str::of('Laravel Framework')->slug('-');
// laravel-framework
slug
方法使用指定字符将字符串格式化为 URL 友好的格式:
use IlluminateSupportStr;
$slug = Str::of('Laravel Framework')->slug('-');
// laravel-framework
Copyright©2023 字节宝| |
违法和不良信息举报电话:|举报邮箱:2283035678@qq.com