1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00

Add secured command

This commit is contained in:
Matt Stauffer
2022-03-14 11:22:33 -04:00
parent 8230cc8a1e
commit 309335be21

View File

@@ -210,6 +210,17 @@
info('The ['.$url.'] site will now serve traffic over HTTP.');
})->descriptions('Stop serving the given domain over HTTPS and remove the trusted TLS certificate');
/**
* Get all the current secured sites
*/
$app->command('secured', function () {
$sites = collect(Site::secured())->map(function ($url) {
return ['Site' => $url];
});
table(['Site'], $sites->all());
});
/**
* Create an Nginx proxy config for the specified domain.
*/