diff --git a/src/Commands/CreateRLSPoliciesForTenantTables.php b/src/Commands/CreateRLSPoliciesForTenantTables.php index 81509a21..7d346521 100644 --- a/src/Commands/CreateRLSPoliciesForTenantTables.php +++ b/src/Commands/CreateRLSPoliciesForTenantTables.php @@ -19,7 +19,9 @@ class CreateRLSPoliciesForTenantTables extends Command public function handle(): int { + dump('Current RLS tables', DB::select('SELECT * FROM pg_policies')); tenancy()->getModels()->each(fn (Model $model) => $this->useRlsOnModel($model)); + dump('RLS tables created', DB::select('SELECT * FROM pg_policies')); return Command::SUCCESS; }