1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 20:54:03 +00:00

Use tenantKeyColumn() instead of the config

This commit is contained in:
lukinovec 2023-04-28 14:27:55 +02:00
parent ce7ddbf401
commit 9ad183d296

View file

@ -16,7 +16,7 @@ class CreateRLSPoliciesForTenantTables extends Command
public function handle(): int public function handle(): int
{ {
$tenantModels = $this->getTenantModels(); $tenantModels = $this->getTenantModels();
$tenantKey = config('tenancy.models.tenant_key_column'); $tenantKey = tenancy()->tenantKeyColumn();
foreach ($tenantModels as $model) { foreach ($tenantModels as $model) {
$table = $model->getTable(); $table = $model->getTable();