mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-16 19:34:03 +00:00
Passing tests with DB storage driver
This commit is contained in:
parent
12c05c0af6
commit
6b0ec1b554
4 changed files with 15 additions and 20 deletions
|
|
@ -59,7 +59,7 @@ class DatabaseStorageDriver implements StorageDriver
|
|||
throw new TenantWithThisIdAlreadyExistsException($tenant->id);
|
||||
}
|
||||
|
||||
if (Domains::whereIn('domain', [$tenant->domains])->exists()) {
|
||||
if (Domains::whereIn('domain', $tenant->domains)->exists()) {
|
||||
throw new DomainOccupiedByOtherTenantException();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue