阅读(4266)
赞(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 编程论坛编程论坛| 浙ICP备2024059924号-1|
违法和不良信息举报电话:|举报邮箱:569242693@qq.com