mirror of
https://github.com/archtechx/tenancy.git
synced 2026-03-23 10:34:03 +00:00
13 lines
309 B
PHP
13 lines
309 B
PHP
<?php
|
|
|
|
namespace Stancl\Tenancy;
|
|
|
|
use Stancl\Tenancy\Interfaces\UniqueIdentifierGenerator;
|
|
|
|
class UUIDGenerator implements UniqueIdentifierGenerator
|
|
{
|
|
public static function handle(string $domain, array $data = []): string
|
|
{
|
|
return (string) \Webpatser\Uuid\Uuid::generate(1, $domain);
|
|
}
|
|
}
|