mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 00:40:06 +01:00
Make valet install handle the addition of tld to config.json
This commit is contained in:
@@ -111,7 +111,15 @@ function createCertificatesDirectory()
|
||||
function writeBaseConfiguration()
|
||||
{
|
||||
if (! $this->files->exists($this->path())) {
|
||||
$this->write(['domain' => 'test', 'paths' => []]);
|
||||
$this->write(['tld' => 'test', 'paths' => []]);
|
||||
}
|
||||
|
||||
/**
|
||||
* For upgrades, change config key 'domain' to 'tld'
|
||||
*/
|
||||
$config = $this->read();
|
||||
if (isset($config['domain']) && !isset($config['tld'])) {
|
||||
$this->updateKey('tld', $config['domain']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user