From cda2a57fb0b1170934884f4bdbc304ae5d7efd21 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Fri, 6 Jan 2023 08:00:16 +0100 Subject: [PATCH] Use `getTenants()` --- src/Commands/Migrate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/Migrate.php b/src/Commands/Migrate.php index 56839911..47b95bd2 100644 --- a/src/Commands/Migrate.php +++ b/src/Commands/Migrate.php @@ -47,9 +47,9 @@ class Migrate extends MigrateCommand return 1; } - foreach ($this->option('tenants') as $tenant) { + foreach ($this->getTenants() as $tenant) { try { - tenancy()->find($tenant)->run(function ($tenant) { + $tenant->run(function ($tenant) { $this->line("Tenant: {$tenant->getTenantKey()}"); event(new MigratingDatabase($tenant));