mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +01:00
Ignore parked paths that are not directory when getting parked sites
This commit is contained in:
@@ -198,6 +198,8 @@ function getSites($path, $certs)
|
||||
$realPath = $this->files->realpath($sitePath);
|
||||
}
|
||||
return [$site => $realPath];
|
||||
})->filter(function ($path) {
|
||||
return $this->files->isDir($path);
|
||||
})->map(function ($path, $site) use ($certs, $config) {
|
||||
$secured = $certs->has($site);
|
||||
$url = ($secured ? 'https': 'http').'://'.$site.'.'.$config['tld'];
|
||||
|
||||
Reference in New Issue
Block a user