1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

Allow renew() to be called without parameters (#1465)

A reasonable default is set here, consistent with the default set in other places.

Fixes #1464
Updates #1461
This commit is contained in:
Chris Brown
2024-01-01 04:12:56 -05:00
committed by GitHub
parent 02d6075ae8
commit e3e5bea388

View File

@@ -503,7 +503,7 @@ public function secure(string $url, ?string $siteConf = null, int $certificateEx
/**
* Renews all domains with a trusted TLS certificate.
*/
public function renew($expireIn): void
public function renew($expireIn = 368): void
{
collect($this->securedWithDates())->each(function ($row) use ($expireIn) {
$url = $this->domain($row['site']);