1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 00:40:06 +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:
Adam Wathan
2018-01-18 12:48:16 -05:00
committed by GitHub

View File

@@ -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();
}