mirror of
https://github.com/dyzulk/trustlab-api.git
synced 2026-01-26 13:22:05 +07:00
First commit
This commit is contained in:
18
app/Helpers/UuidHelper.php
Normal file
18
app/Helpers/UuidHelper.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user