From 9ad183d2967f5e68a161678e52dc09b7cdadc87d Mon Sep 17 00:00:00 2001 From: lukinovec Date: Fri, 28 Apr 2023 14:27:55 +0200 Subject: [PATCH] Use `tenantKeyColumn()` instead of the config --- src/Commands/CreateRLSPoliciesForTenantTables.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/CreateRLSPoliciesForTenantTables.php b/src/Commands/CreateRLSPoliciesForTenantTables.php index 0595c410..46dccadf 100644 --- a/src/Commands/CreateRLSPoliciesForTenantTables.php +++ b/src/Commands/CreateRLSPoliciesForTenantTables.php @@ -16,7 +16,7 @@ class CreateRLSPoliciesForTenantTables extends Command public function handle(): int { $tenantModels = $this->getTenantModels(); - $tenantKey = config('tenancy.models.tenant_key_column'); + $tenantKey = tenancy()->tenantKeyColumn(); foreach ($tenantModels as $model) { $table = $model->getTable();