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

Drop old config migrations

This commit is contained in:
Matt Stauffer
2023-01-03 22:35:46 -05:00
parent e5e0e03799
commit a79128200b

View File

@@ -123,19 +123,6 @@ public function writeBaseConfiguration(): void
if (! $this->files->exists($this->path())) {
$this->write(['tld' => 'test', 'loopback' => VALET_LOOPBACK, 'paths' => []]);
}
/**
* Migrate old configurations from 'domain' to 'tld'.
*/
$config = $this->read();
if (! isset($config['tld'])) {
$this->updateKey('tld', ! empty($config['domain']) ? $config['domain'] : 'test');
}
if (! isset($config['loopback'])) {
$this->updateKey('loopback', VALET_LOOPBACK);
}
}
/**