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