1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 09:54:03 +00:00

Merge branch '3.x' of github.com:stancl/tenancy into 3.x

This commit is contained in:
Samuel Štancl 2020-07-20 14:30:47 +02:00
commit 94abd732ae

View file

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