1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 08:10:07 +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)
{
if ($this->parked()->pluck('site')->contains($domain)) {
return $domain;
}
// if ($this->parked()->pluck('site')->contains($domain)) {
// return $domain;
// }
if ($parked = $this->parked()->where('path', getcwd())->first()) {
return $parked['site'];
}
// if ($parked = $this->parked()->where('path', getcwd())->first()) {
// return $parked['site'];
// }
return ($domain ?: $this->host(getcwd())).'.'.$this->config->read()['tld'];
}