mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 05:24:03 +00:00
15 lines
346 B
PHP
15 lines
346 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy;
|
|
|
|
use Stancl\Tenancy\Contracts\UniqueIdentifierGenerator;
|
|
|
|
class UUIDGenerator implements UniqueIdentifierGenerator
|
|
{
|
|
public static function generate(array $domains, array $data = []): string
|
|
{
|
|
return (string) \Webpatser\Uuid\Uuid::generate(1, $domains[0] ?? '');
|
|
}
|
|
}
|