feat: 项目基础框架+配置+Kernel
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Utils;
|
||||
|
||||
use Illuminate\Support\Facades\Config;
|
||||
|
||||
class Hash
|
||||
{
|
||||
public static function createCode(){
|
||||
$bin = random_bytes(20);
|
||||
$privateKey = bin2hex($bin);
|
||||
return $privateKey;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user