mirror of
https://github.com/dyzulk/trustlab-api.git
synced 2026-01-27 05:41:55 +07:00
19 lines
308 B
PHP
19 lines
308 B
PHP
<?php
|
|
|
|
namespace App\Helpers;
|
|
|
|
use Illuminate\Support\Str;
|
|
|
|
class UuidHelper
|
|
{
|
|
/**
|
|
* Generate a unique 32-character hexadecimal UUID (without dashes).
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function generate()
|
|
{
|
|
return str_replace('-', '', (string) Str::uuid());
|
|
}
|
|
}
|