1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 19:24:02 +00:00

Use getModels (testing CI)

This commit is contained in:
lukinovec 2023-06-16 08:37:31 +02:00
parent 6bd78b4520
commit 1f5ed5ba22

View file

@ -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;