From 19fb4017b7f3cb7cd9e7bd0d2988a78d71f0323a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sun, 4 Aug 2019 20:31:47 +0200 Subject: [PATCH] wip --- src/Commands/Run.php | 58 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/Commands/Run.php 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 + } +}