mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 08:10:07 +01:00
Roll back #1088
This commit is contained in:
@@ -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'];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user