mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:54:05 +00:00
Replace webpatser/laravel-uuid with ramsey/uuid (#150)
This commit is contained in:
parent
6a9128474f
commit
6cb7f27e6c
2 changed files with 4 additions and 3 deletions
|
|
@ -11,8 +11,8 @@
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"illuminate/support": "^6.0",
|
"illuminate/support": "^6.0",
|
||||||
"webpatser/laravel-uuid": "^3.0",
|
"facade/ignition-contracts": "^1.0",
|
||||||
"facade/ignition-contracts": "^1.0"
|
"ramsey/uuid": "^3.7"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"vlucas/phpdotenv": "^3.3",
|
"vlucas/phpdotenv": "^3.3",
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,13 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Stancl\Tenancy\UniqueIDGenerators;
|
namespace Stancl\Tenancy\UniqueIDGenerators;
|
||||||
|
|
||||||
|
use Ramsey\Uuid\Uuid;
|
||||||
use Stancl\Tenancy\Contracts\UniqueIdentifierGenerator;
|
use Stancl\Tenancy\Contracts\UniqueIdentifierGenerator;
|
||||||
|
|
||||||
class UUIDGenerator implements UniqueIdentifierGenerator
|
class UUIDGenerator implements UniqueIdentifierGenerator
|
||||||
{
|
{
|
||||||
public static function generate(array $domains, array $data = []): string
|
public static function generate(array $domains, array $data = []): string
|
||||||
{
|
{
|
||||||
return (string) \Webpatser\Uuid\Uuid::generate(1, $domains[0] ?? '');
|
return Uuid::uuid4()->toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue