安装
composer require ramsey/uuid
使用
use Ramsey\Uuid\Uuid;
$data = Uuid::uuid1()->getHex();
或
$data = Uuid::uuid1()->toString();
安装
composer require ramsey/uuid
使用
use Ramsey\Uuid\Uuid;
$data = Uuid::uuid1()->getHex();
或
$data = Uuid::uuid1()->toString();