Skip to content

Commit 309335b

Browse files
committed
Add secured command
1 parent 8230cc8 commit 309335b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cli/valet.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,17 @@
210210
info('The ['.$url.'] site will now serve traffic over HTTP.');
211211
})->descriptions('Stop serving the given domain over HTTPS and remove the trusted TLS certificate');
212212

213+
/**
214+
* Get all the current secured sites
215+
*/
216+
$app->command('secured', function () {
217+
$sites = collect(Site::secured())->map(function ($url) {
218+
return ['Site' => $url];
219+
});
220+
221+
table(['Site'], $sites->all());
222+
});
223+
213224
/**
214225
* Create an Nginx proxy config for the specified domain.
215226
*/

0 commit comments

Comments
 (0)