mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
Merge pull request #495 from jasper-ter-veen/master
Update valet links command to parse out https for non-.dev domains
This commit is contained in:
@@ -85,7 +85,7 @@ function getCertificates($path)
|
||||
return collect($this->files->scanDir($path))->filter(function ($value, $key) {
|
||||
return ends_with($value, '.crt');
|
||||
})->map(function ($cert) {
|
||||
return substr($cert, 0, -8);
|
||||
return substr($cert, 0, strripos($cert, '.', -5));
|
||||
})->flip();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user