We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5a0ece + 826865b commit 31b9953Copy full SHA for 31b9953
app/Services/Forge/ForgeService.php
@@ -83,9 +83,13 @@ public function getFormattedDomainName(): string
83
84
public function getFormattedAliases(): array
85
{
86
- $subdomain = $this->setting->subdomainName ?? $this->getFormattedBranchName();
+ if ($this->setting->aliases === null) {
87
+ return [];
88
+ }
89
- return collect(explode(',', $this->setting->aliases) ?? [])
90
+ $subdomain = $this->setting->subdomainName ?? $this->getFormattedBranchName();
91
+
92
+ return collect(explode(',', $this->setting->aliases))
93
->map(fn($alias) => GenerateDomainName::run(trim($alias), $subdomain))
94
->toArray();
95
}
0 commit comments