1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00
This commit is contained in:
Matt Stauffer
2022-04-15 11:51:34 -04:00
parent 3dd14eed72
commit 70969872cf

View File

@@ -1080,13 +1080,13 @@ public function certificatesPath($url = null, $extension = null)
*/ */
public function domain($domain) public function domain($domain)
{ {
if ($this->parked()->pluck('site')->contains($domain)) { // if ($this->parked()->pluck('site')->contains($domain)) {
return $domain; // return $domain;
} // }
if ($parked = $this->parked()->where('path', getcwd())->first()) { // if ($parked = $this->parked()->where('path', getcwd())->first()) {
return $parked['site']; // return $parked['site'];
} // }
return ($domain ?: $this->host(getcwd())).'.'.$this->config->read()['tld']; return ($domain ?: $this->host(getcwd())).'.'.$this->config->read()['tld'];
} }