1
0
Fork 0
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:
Samuel Štancl 2019-09-18 20:08:30 +02:00
parent 12c05c0af6
commit 6b0ec1b554
4 changed files with 15 additions and 20 deletions

View file

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