mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:14:04 +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);
|
|
}
|
|
}
|