function secure($url)
    {
        $this->unsecure($url);

        $this->files->ensureDirExists($this->caPath(), user());

        $this->files->ensureDirExists($this->certificatesPath(), user());

        $this->createCa();

        $this->createCertificate($url);

        $this->files->putAsUser(
            VALET_HOME_PATH.'/Nginx/'.$url, $this->buildSecureNginxServer($url)
        );
    }
function secure($url)
    {
        $this->unsecure($url);

        $this->files->ensureDirExists($this->caPath(), user());

        $this->files->ensureDirExists($this->certificatesPath(), user());

        $this->createCa();

        $this->createCertificate($url);

        $this->files->putAsUser(
            VALET_HOME_PATH.'/Nginx/'.$url, $this->buildSecureNginxServer($url)
        );
    }
function secure ( $ url ) { $ this -> unsecure ( $ url ) ; $ this -> files -> ensureDirExists ( $ this -> caPath ( ) , user ( ) ) ; $ this -> files -> ensureDirExists ( $ this -> certificatesPath ( ) , user ( ) ) ; $ this -> createCa ( ) ; $ this -> createCertificate ( $ url ) ; $ this -> files -> putAsUser ( VALET_HOME_PATH . '/Nginx/' . $ url , $ this -> buildSecureNginxServer ( $ url ) ) ; }
Secure the given host with TLS.

@param  string  $url
@return void
Secure the given host with TLS .