Skip to content

Commit

Permalink
Qualify scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk committed Jul 27, 2020
1 parent ecb9523 commit 2996a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/TenantScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TenantScope implements Scope
{
public function apply(Builder $builder, Model $model)
{
$builder->where(BelongsToTenant::$tenantIdColumn, tenant()->key());
$builder->where($model->qualifyColumn(BelongsToTenant::$tenantIdColumn), tenant()->key());
}

public function extend(Builder $builder)
Expand Down

0 comments on commit 2996a69

Please sign in to comment.