src/Providers/Traits/PackagePath.php
private function packagePath(string $relativePath): string
    {
    	$packagePath = rtrim(str_replace('/', DIRECTORY_SEPARATOR, $this->packagePath), DIRECTORY_SEPARATOR);
        $relativePath = ltrim(str_replace('/', DIRECTORY_SEPARATOR, $relativePath), DIRECTORY_SEPARATOR);

        return realpath($packagePath . DIRECTORY_SEPARATOR . $relativePath);
    }
private function packagePath(string $relativePath): string
    {
    	$packagePath = rtrim(str_replace('/', DIRECTORY_SEPARATOR, $this->packagePath), DIRECTORY_SEPARATOR);
        $relativePath = ltrim(str_replace('/', DIRECTORY_SEPARATOR, $relativePath), DIRECTORY_SEPARATOR);

        return realpath($packagePath . DIRECTORY_SEPARATOR . $relativePath);
    }
private function packagePath ( string $ relativePath ) : string { $ packagePath = rtrim ( str_replace ( '/' , DIRECTORY_SEPARATOR , $ this -> packagePath ) , DIRECTORY_SEPARATOR ) ; $ relativePath = ltrim ( str_replace ( '/' , DIRECTORY_SEPARATOR , $ relativePath ) , DIRECTORY_SEPARATOR ) ; return realpath ( $ packagePath . DIRECTORY_SEPARATOR . $ relativePath ) ; }
give relative path from package root and return absolute path

@param string $relativePath

@return string
give relative path from package root and return absolute path