Files
trustlab-api/app/Helpers/UuidHelper.php
2025-12-30 12:32:54 +07:00

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());
}
}