function unsecure($url)
    {
        if ($this->files->exists($this->certificatesPath().'/'.$url.'.crt')) {
            $this->files->unlink(VALET_HOME_PATH.'/Nginx/'.$url);

            $this->files->unlink($this->certificatesPath().'/'.$url.'.conf');
            $this->files->unlink($this->certificatesPath().'/'.$url.'.key');
            $this->files->unlink($this->certificatesPath().'/'.$url.'.csr');
            $this->files->unlink($this->certificatesPath().'/'.$url.'.crt');
        }

        $this->cli->run(sprintf('sudo security delete-certificate -c "%s" /Library/Keychains/System.keychain', $url));
        $this->cli->run(sprintf('sudo security delete-certificate -c "*.%s" /Library/Keychains/System.keychain', $url));
        $this->cli->run(sprintf(
            'sudo security find-certificate -e "%s%s" -a -Z | grep SHA-1 | sudo awk \'{system("security delete-certificate -Z "$NF" /Library/Keychains/System.keychain")}\'',
            $url, '@laravel.valet'
        ));
    }
function unsecure($url)
    {
        if ($this->files->exists($this->certificatesPath().'/'.$url.'.crt')) {
            $this->files->unlink(VALET_HOME_PATH.'/Nginx/'.$url);

            $this->files->unlink($this->certificatesPath().'/'.$url.'.conf');
            $this->files->unlink($this->certificatesPath().'/'.$url.'.key');
            $this->files->unlink($this->certificatesPath().'/'.$url.'.csr');
            $this->files->unlink($this->certificatesPath().'/'.$url.'.crt');
        }

        $this->cli->run(sprintf('sudo security delete-certificate -c "%s" /Library/Keychains/System.keychain', $url));
        $this->cli->run(sprintf('sudo security delete-certificate -c "*.%s" /Library/Keychains/System.keychain', $url));
        $this->cli->run(sprintf(
            'sudo security find-certificate -e "%s%s" -a -Z | grep SHA-1 | sudo awk \'{system("security delete-certificate -Z "$NF" /Library/Keychains/System.keychain")}\'',
            $url, '@laravel.valet'
        ));
    }
function unsecure ( $ url ) { if ( $ this -> files -> exists ( $ this -> certificatesPath ( ) . '/' . $ url . '.crt' ) ) { $ this -> files -> unlink ( VALET_HOME_PATH . '/Nginx/' . $ url ) ; $ this -> files -> unlink ( $ this -> certificatesPath ( ) . '/' . $ url . '.conf' ) ; $ this -> files -> unlink ( $ this -> certificatesPath ( ) . '/' . $ url . '.key' ) ; $ this -> files -> unlink ( $ this -> certificatesPath ( ) . '/' . $ url . '.csr' ) ; $ this -> files -> unlink ( $ this -> certificatesPath ( ) . '/' . $ url . '.crt' ) ; } $ this -> cli -> run ( sprintf ( 'sudo security delete-certificate -c "%s" /Library/Keychains/System.keychain' , $ url ) ) ; $ this -> cli -> run ( sprintf ( 'sudo security delete-certificate -c "*.%s" /Library/Keychains/System.keychain' , $ url ) ) ; $ this -> cli -> run ( sprintf ( 'sudo security find-certificate -e "%s%s" -a -Z | grep SHA-1 | sudo awk \'{system("security delete-certificate -Z "$NF" /Library/Keychains/System.keychain")}\'' , $ url , '@laravel.valet' ) ) ; }
Unsecure the given URL so that it will use HTTP again.

@param  string  $url
@return void
Unsecure the given URL so that it will use HTTP again .