mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 10:14:04 +00:00
Use tenantKeyColumn() instead of the config
This commit is contained in:
parent
ce7ddbf401
commit
9ad183d296
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue