mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Update misc-tips.blade.md (#49)
Noticed that the code example for Custom ID scheme had some errors.
This commit is contained in:
parent
791e8433f5
commit
cb913e9987
1 changed files with 2 additions and 2 deletions
|
|
@ -16,9 +16,9 @@ use Stancl\Tenancy\Contracts\UniqueIdentifierGenerator;
|
|||
|
||||
class MyUniqueIDGenerator implements UniqueIdentifierGenerator
|
||||
{
|
||||
public static function handle(string $domain, array $data): string
|
||||
public static function generate(array $domains, array $data = []): string
|
||||
{
|
||||
return $domain . \Ramsey\Uuid\Uuid::uuid4()->toString();
|
||||
return $domains[0] . \Ramsey\Uuid\Uuid::uuid4()->toString();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue