diff --git a/src/Commands/CreateRLSPoliciesForTenantTables.php b/src/Commands/CreateRLSPoliciesForTenantTables.php index af41c351..cdcae3e4 100644 --- a/src/Commands/CreateRLSPoliciesForTenantTables.php +++ b/src/Commands/CreateRLSPoliciesForTenantTables.php @@ -20,7 +20,7 @@ class CreateRLSPoliciesForTenantTables extends Command public function handle(): int { DB::transaction(function () { - tenancy()->getTenantModels()->each(fn (Model $model) => $this->useRlsOnModel($model)); + tenancy()->getModels()->each(fn (Model $model) => $this->useRlsOnModel($model)); }); return Command::SUCCESS;