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

Qualify where column (#467)

This commit is contained in:
Lupacescu Eduard 2020-07-27 16:02:12 +03:00 committed by GitHub
parent f2a3cf028c
commit 520fa96d8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ class TenantScope implements Scope
return;
}
$builder->where(BelongsToTenant::$tenantIdColumn, tenant()->getTenantKey());
$builder->where($model->qualifyColumn(BelongsToTenant::$tenantIdColumn), tenant()->getTenantKey());
}
public function extend(Builder $builder)