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

add tenantIdColumn() method (refactor previous commit)

This commit is contained in:
Samuel Štancl 2022-10-01 18:01:39 +02:00
parent 24146b26e2
commit e5bc8ddb77
3 changed files with 11 additions and 6 deletions

View file

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