cli/Valet/Site.php
/**
     * Resecure all currently secured sites with a fresh domain.
     *
     * @param  string  $oldDomain
     * @param  string  $domain
     * @return void
     */
Resecure all currently secured sites with a fresh domain.
@param  string  $oldDomain
@param  string  $domain
@return void
Resecure all currently secured sites with a fresh domain . @param string $oldDomain @param string $domain @return void
function resecureForNewDomain($oldDomain, $domain)
    {
        $secured = $this->secured();
        foreach ($secured as $url) {
            $this->unsecure($url);
        }
        foreach ($secured as $url) {
            $this->secure(str_replace('.'.$oldDomain, '.'.$domain, $url));
        }
    }
function resecureForNewDomain ( $ oldDomain , $ domain ) { $ secured = $ this -> secured ( ) ; foreach ( $ secured as $ url ) { $ this -> unsecure ( $ url ) ; } foreach ( $ secured as $ url ) { $ this -> secure ( str_replace ( '.' . $ oldDomain , '.' . $ domain , $ url ) ) ; } }
Resecure all currently secured sites with a fresh domain.
Resecure all currently secured sites with a fresh domain .