1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00

Change valet domain command to valet tld

Fixes #144
".test" or ".dev" is really a TLD, not a "domain" in the conventional sense.
Changing the command to `valet tld` more accurately reflects the purpose of the command (to set or get the configured TLD served by Valet)

The use of `valet domain` is currently preserved as an alias for `valet tld`, but will be removed at a later date.
This commit is contained in:
Chris Brown
2017-10-17 15:47:39 -04:00
parent 9394811a09
commit 58e4645fe2
6 changed files with 41 additions and 39 deletions

View File

@@ -104,7 +104,7 @@ function getLinks($path, $certs)
return [$site => $this->files->readLink($path.'/'.$site)];
})->map(function ($path, $site) use ($certs, $config) {
$secured = $certs->has($site);
$url = ($secured ? 'https': 'http').'://'.$site.'.'.$config['domain'];
$url = ($secured ? 'https': 'http').'://'.$site.'.'.$config['tld'];
return [$site, $secured ? ' X': '', $url, $path];
});