argument('commandname'); $stringInput = new StringInput($commandName); tenancy()->runForMultiple($this->getTenants(), function ($tenant) use ($stringInput) { $this->components->info("Tenant: {$tenant->getTenantKey()}"); $this->getLaravel() ->make(Kernel::class) ->handle($stringInput, new ConsoleOutput); }); return 0; } }