Don't use underscore in subdomain

Even though it's perfectly valid, some providers (Paddle in our case) don't validate URLs with an underscore in them as valid, an easy fix is just using a dash instead.
This commit is contained in:
Rias
2020-06-25 13:11:55 +02:00
committed by GitHub
parent f8a6b45af7
commit 6f04a0dfb6

View File

@@ -13,7 +13,7 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand
$this->input->setArgument('host', $host);
if (! $this->option('subdomain')) {
$subdomain = str_replace('.', '_', basename(getcwd()));
$subdomain = str_replace('.', '-', basename(getcwd()));
$this->input->setOption('subdomain', $subdomain);
}