mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 11:34:03 +00:00
Merge branch '3.x' of github.com:stancl/tenancy into 3.x
This commit is contained in:
commit
94abd732ae
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ class Tenancy
|
|||
|
||||
public function find($id): ?Tenant
|
||||
{
|
||||
return $this->model()->find($id);
|
||||
return $this->model()->where($this->model()->getTenantKeyName(), $id)->first();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue