diff --git a/src/Traits/TenantAwareCommand.php b/src/Traits/TenantAwareCommand.php index e86168df..fb11df9f 100644 --- a/src/Traits/TenantAwareCommand.php +++ b/src/Traits/TenantAwareCommand.php @@ -14,14 +14,8 @@ trait TenantAwareCommand protected function execute(InputInterface $input, OutputInterface $output) { $tenants = $this->getTenants(); - - if (count($tenants) === 1) { - return $tenants[0]->run(function () { - return $this->laravel->call([$this, 'handle']); - }); - } - $exitCode = 0; + foreach ($tenants as $tenant) { $result = (int) $tenant->run(function () { return $this->laravel->call([$this, 'handle']);