阅读(4269)
赞(1)
Laravel 8 Str::random() {#collection-method}
2021-07-03 16:54:20 更新
Str::random 函数生成一个指定长度的随机字符串。这个函数用 PHP 的 random_bytes 函数
use Illuminate\Support\Str;
$random = Str::random(40); Str::random 函数生成一个指定长度的随机字符串。这个函数用 PHP 的 random_bytes 函数
use Illuminate\Support\Str;
$random = Str::random(40); Copyright©2023 字节宝字节宝| |
违法和不良信息举报电话:|举报邮箱:3111859717@qq.com
