function writeBaseConfiguration()
    {
        if (! $this->files->exists($this->path())) {
            $this->write(['tld' => 'test', 'paths' => []]);
        }

        /**
         * Migrate old configurations from 'domain' to 'tld'
         */
        $config = $this->read();

        if (isset($config['tld'])) {
            return;
        }

        $this->updateKey('tld', !empty($config['domain']) ? $config['domain'] : 'test');
    }
function writeBaseConfiguration()
    {
        if (! $this->files->exists($this->path())) {
            $this->write(['tld' => 'test', 'paths' => []]);
        }

        /**
         * Migrate old configurations from 'domain' to 'tld'
         */
        $config = $this->read();

        if (isset($config['tld'])) {
            return;
        }

        $this->updateKey('tld', !empty($config['domain']) ? $config['domain'] : 'test');
    }
function writeBaseConfiguration ( ) { if ( ! $ this -> files -> exists ( $ this -> path ( ) ) ) { $ this -> write ( [ 'tld' => 'test' , 'paths' => [ ] ] ) ; } /**
         * Migrate old configurations from 'domain' to 'tld'
         */ $ config = $ this -> read ( ) ; if ( isset ( $ config [ 'tld' ] ) ) { return ; } $ this -> updateKey ( 'tld' , ! empty ( $ config [ 'domain' ] ) ? $ config [ 'domain' ] : 'test' ) ; }
Write the base, initial configuration for Valet.
Write the base initial configuration for Valet .