cli/Valet/Site.php
/**
     * Build the TLS secured Caddyfile for the given URL.
     *
     * @param  string  $url
     * @return string
     */
Build the TLS secured Caddyfile for the given URL.
@param  string  $url
@return string
Build the TLS secured Caddyfile for the given URL . @param string $url @return string
function buildSecureCaddyfile($url)
    {
        $path = $this->certificatesPath();
        return str_replace(
            ['VALET_SITE', 'VALET_CERT', 'VALET_KEY'], [$url, $path.'/'.$url.'.crt', $path.'/'.$url.'.key'],
            $this->files->get(__DIR__.'/../stubs/SecureCaddyfile')
        );
    }
function buildSecureCaddyfile ( $ url ) { $ path = $ this -> certificatesPath ( ) ; return str_replace ( [ 'VALET_SITE' , 'VALET_CERT' , 'VALET_KEY' ] , [ $ url , $ path . '/' . $ url . '.crt' , $ path . '/' . $ url . '.key' ] , $ this -> files -> get ( __DIR__ . '/../stubs/SecureCaddyfile' ) ) ; }
Build the TLS secured Caddyfile for the given URL.
Build the TLS secured Caddyfile for the given URL .