function appendCustomConfigImport($customConfigPath)
    {
        $contents = preg_replace('/^conf-file=.*\/\.valet\/.*$/m', '', $this->files->get($this->configPath));
        $this->files->putAsUser($this->configPath, $contents);

        if (! $this->customConfigIsBeingImported($customConfigPath)) {
            $this->files->appendAsUser(
                $this->configPath,
                PHP_EOL.'conf-file='.$customConfigPath.PHP_EOL
            );
        }
    }
function appendCustomConfigImport($customConfigPath)
    {
        $contents = preg_replace('/^conf-file=.*\/\.valet\/.*$/m', '', $this->files->get($this->configPath));
        $this->files->putAsUser($this->configPath, $contents);

        if (! $this->customConfigIsBeingImported($customConfigPath)) {
            $this->files->appendAsUser(
                $this->configPath,
                PHP_EOL.'conf-file='.$customConfigPath.PHP_EOL
            );
        }
    }
function appendCustomConfigImport ( $ customConfigPath ) { $ contents = preg_replace ( '/^conf-file=.*\/\.valet\/.*$/m' , '' , $ this -> files -> get ( $ this -> configPath ) ) ; $ this -> files -> putAsUser ( $ this -> configPath , $ contents ) ; if ( ! $ this -> customConfigIsBeingImported ( $ customConfigPath ) ) { $ this -> files -> appendAsUser ( $ this -> configPath , PHP_EOL . 'conf-file=' . $ customConfigPath . PHP_EOL ) ; } }
Append import command for our custom configuration to DnsMasq file.

@param  string  $customConfigPath
@return void
Append import command for our custom configuration to DnsMasq file .