function installServer()
    {
        $this->files->ensureDirExists('/usr/local/etc/nginx/valet');

        $this->files->putAsUser(
            '/usr/local/etc/nginx/valet/valet.conf',
            str_replace(
                ['VALET_HOME_PATH', 'VALET_SERVER_PATH', 'VALET_STATIC_PREFIX'],
                [VALET_HOME_PATH, VALET_SERVER_PATH, VALET_STATIC_PREFIX],
                $this->files->get(__DIR__.'/../stubs/valet.conf')
            )
        );

        $this->files->putAsUser(
            '/usr/local/etc/nginx/fastcgi_params',
            $this->files->get(__DIR__.'/../stubs/fastcgi_params')
        );
    }
function installServer()
    {
        $this->files->ensureDirExists('/usr/local/etc/nginx/valet');

        $this->files->putAsUser(
            '/usr/local/etc/nginx/valet/valet.conf',
            str_replace(
                ['VALET_HOME_PATH', 'VALET_SERVER_PATH', 'VALET_STATIC_PREFIX'],
                [VALET_HOME_PATH, VALET_SERVER_PATH, VALET_STATIC_PREFIX],
                $this->files->get(__DIR__.'/../stubs/valet.conf')
            )
        );

        $this->files->putAsUser(
            '/usr/local/etc/nginx/fastcgi_params',
            $this->files->get(__DIR__.'/../stubs/fastcgi_params')
        );
    }
function installServer ( ) { $ this -> files -> ensureDirExists ( '/usr/local/etc/nginx/valet' ) ; $ this -> files -> putAsUser ( '/usr/local/etc/nginx/valet/valet.conf' , str_replace ( [ 'VALET_HOME_PATH' , 'VALET_SERVER_PATH' , 'VALET_STATIC_PREFIX' ] , [ VALET_HOME_PATH , VALET_SERVER_PATH , VALET_STATIC_PREFIX ] , $ this -> files -> get ( __DIR__ . '/../stubs/valet.conf' ) ) ) ; $ this -> files -> putAsUser ( '/usr/local/etc/nginx/fastcgi_params' , $ this -> files -> get ( __DIR__ . '/../stubs/fastcgi_params' ) ) ; }
Install the Valet Nginx server configuration file.

@return void
Install the Valet Nginx server configuration file .