Laravel\SparkInstaller\InteractsWithSparkConfiguration::homePath PHP Method

homePath() protected method

Get the User's home path.
protected homePath ( ) : string
return string
    protected function homePath()
    {
        if (!empty($_SERVER['HOME'])) {
            return $_SERVER['HOME'];
        } elseif (!empty($_SERVER['HOMEDRIVE']) && !empty($_SERVER['HOMEPATH'])) {
            return $_SERVER['HOMEDRIVE'] . $_SERVER['HOMEPATH'];
        } else {
            throw new Exception('Cannot determine home directory.');
        }
    }