This commit is contained in:
Marcel Pociot
2022-03-17 12:05:38 +01:00
parent e079a6320c
commit 729d1fc817

View File

@@ -41,6 +41,8 @@ class ShareCommand extends ServerAwareCommand
$this->info('Trying to use custom domain: '.$subdomains[0].PHP_EOL, OutputInterface::VERBOSITY_VERBOSE);
} else {
$host = Str::beforeLast($this->argument('host'), '.');
$host = str_replace('https://', '', $host);
$host = str_replace('http://', '', $host);
$host = Str::beforeLast($host, ':');
$subdomains = [Str::slug($host)];
$this->info('Trying to use custom domain: '.$subdomains[0].PHP_EOL, OutputInterface::VERBOSITY_VERBOSE);