1
0
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:
Chris Brown
2016-12-09 11:20:43 -05:00
parent bd5c998019
commit 9394811a09

View File

@@ -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']);
}
}