cli/Valet/Site.php
/**
     * Get the real hostname for the given path, checking links.
     *
     * @param  string  $path
     * @return string|null
     */
Get the real hostname for the given path, checking links.
@param  string  $path
@return string|null
Get the real hostname for the given path checking links . @param string $path @return string|null
function host($path)
    {
        foreach ($this->files->scandir($this->sitesPath()) as $link) {
            if ($resolved = realpath($this->sitesPath().'/'.$link) == $path) {
                return $link;
            }
        }
        return basename($path);
    }
function host ( $ path ) { foreach ( $ this -> files -> scandir ( $ this -> sitesPath ( ) ) as $ link ) { if ( $ resolved = realpath ( $ this -> sitesPath ( ) . '/' . $ link ) == $ path ) { return $ link ; } } return basename ( $ path ) ; }
Get the real hostname for the given path, checking links.
Get the real hostname for the given path checking links .