阅读(1116)
赞(7)
Laravel 8 Str::slug() {#collection-method}
2021-07-03 16:54:20 更新
Str::slug
函数将给定的字符串生成一个 URL 友好的「slug」:
use IlluminateSupportStr;
$slug = Str::slug('Laravel 5 Framework', '-');
// laravel-5-framework
Str::slug
函数将给定的字符串生成一个 URL 友好的「slug」:
use IlluminateSupportStr;
$slug = Str::slug('Laravel 5 Framework', '-');
// laravel-5-framework
Copyright©2023 字节宝| |
违法和不良信息举报电话:|举报邮箱:2283035678@qq.com