1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 20:14:04 +00:00
tenancy/src/UUIDGenerator.php
Samuel Štancl f590e2ce2a
[1.8.0] Custom id scheme (#108)
* Add UniqueIdentifierGenerators

* Apply fixes from StyleCI
2019-08-21 20:29:53 +02:00

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