diff --git a/src/Commands/Run.php b/src/Commands/Run.php new file mode 100644 index 00000000..04e9863a --- /dev/null +++ b/src/Commands/Run.php @@ -0,0 +1,58 @@ +database = $database; + } + + /** + * Execute the console command. + * + * @return mixed + */ + public function handle() + { + if (! $this->confirmToProceed()) { + return; + } + + tenant()->all($this->option('tenants'))->each(function ($tenant) { + $this->line("Tenant: {$tenant['uuid']} ({$tenant['domain']})"); + tenancy()->init($tenant['domain']); + + // Run command + // todo + }); + + // todo reconnect to previous tenant or end tenancy if it hadn't been started + } +}