mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 17:10:05 +01:00
Update Site.php
This commit is contained in:
@@ -85,7 +85,7 @@ function getCertificates($path)
|
|||||||
return collect($this->files->scanDir($path))->filter(function ($value, $key) {
|
return collect($this->files->scanDir($path))->filter(function ($value, $key) {
|
||||||
return ends_with($value, '.crt');
|
return ends_with($value, '.crt');
|
||||||
})->map(function ($cert) {
|
})->map(function ($cert) {
|
||||||
return substr($cert, 0, strripos($cert, '.', -4));
|
return substr($cert, 0, strripos($cert, '.', -5));
|
||||||
})->flip();
|
})->flip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user