1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 06:14:04 +00:00

Tenant -> Tenants

This commit is contained in:
Samuel Štancl 2019-10-25 19:49:23 +02:00
parent 2cf138a728
commit 7fe9b36e4b
2 changed files with 10 additions and 1 deletions

View file

@ -82,7 +82,7 @@ class DatabaseStorageDriver implements StorageDriver
public function findBy(string $key, $value): Tenant
{
// [WIP] [TODO] Temporary implementation, key has to be a custom column.
$tenant = Tenant::where($key, $value)->first();
$tenant = Tenants::where($key, $value)->first();
if (! $tenant) {
throw new TenantDoesNotExistException($value, $key);