Skip to content

Commit

Permalink
Roll back #1088
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed Apr 15, 2022
1 parent 3dd14ee commit 7096987
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cli/Valet/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down

0 comments on commit 7096987

Please sign in to comment.