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 Aug 1, 2020
2 parents d20056b + 520fa96 commit a002f59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Database/Models/Tenant.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @property Carbon $updated_at
* @property array $data
*
* @method TenantCollection all()
* @method static TenantCollection all()
*/
class Tenant extends Model implements Contracts\Tenant
{
Expand Down
2 changes: 1 addition & 1 deletion src/Database/TenantScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function apply(Builder $builder, Model $model)
return;
}

$builder->where(BelongsToTenant::$tenantIdColumn, tenant()->getTenantKey());
$builder->where($model->qualifyColumn(BelongsToTenant::$tenantIdColumn), tenant()->getTenantKey());
}

public function extend(Builder $builder)
Expand Down

0 comments on commit a002f59

Please sign in to comment.