1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 01:44:04 +00:00

Replace webpatser/laravel-uuid with ramsey/uuid (#150)

This commit is contained in:
Samuel Štancl 2019-09-30 18:13:52 +02:00 committed by GitHub
parent 6a9128474f
commit 6cb7f27e6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -4,12 +4,13 @@ declare(strict_types=1);
namespace Stancl\Tenancy\UniqueIDGenerators;
use Ramsey\Uuid\Uuid;
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] ?? '');
return Uuid::uuid4()->toString();
}
}