diff --git a/src/Commands/CreatePostgresUserForTenants.php b/src/Commands/CreatePostgresUserForTenants.php index 02991e91..817f0bed 100644 --- a/src/Commands/CreatePostgresUserForTenants.php +++ b/src/Commands/CreatePostgresUserForTenants.php @@ -16,9 +16,9 @@ class CreatePostgresUserForTenants extends Command public function handle(): int { - tenancy()->runForMultiple($this->getTenants(), function ($tenant) { - CreatePostgresUserForTenant::dispatch(); - }); + foreach ($this->getTenants() as $tenant) { + CreatePostgresUserForTenant::dispatch($tenant); + } return Command::SUCCESS; }