Skip to content

Commit

Permalink
Merge branch '3.x' of github.com:stancl/tenancy into 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl committed Jul 20, 2020
2 parents 9eb4bfb + 683bb5a commit 94abd73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tenancy.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function model()

public function find($id): ?Tenant
{
return $this->model()->find($id);
return $this->model()->where($this->model()->getTenantKeyName(), $id)->first();
}

/**
Expand Down

0 comments on commit 94abd73

Please sign in to comment.