mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 06:14:04 +00:00
Tenant -> Tenants
This commit is contained in:
parent
2cf138a728
commit
7fe9b36e4b
2 changed files with 10 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue