public function getRootPath()
    {
        $appPath = app_path();
        $folders = explode(DIRECTORY_SEPARATOR, $appPath);
        array_pop($folders);
        $rootPath = implode(DIRECTORY_SEPARATOR, $folders);

        return $rootPath . '/';
    }
public function getRootPath()
    {
        $appPath = app_path();
        $folders = explode(DIRECTORY_SEPARATOR, $appPath);
        array_pop($folders);
        $rootPath = implode(DIRECTORY_SEPARATOR, $folders);

        return $rootPath . '/';
    }
public function getRootPath ( ) { $ appPath = app_path ( ) ; $ folders = explode ( DIRECTORY_SEPARATOR , $ appPath ) ; array_pop ( $ folders ) ; $ rootPath = implode ( DIRECTORY_SEPARATOR , $ folders ) ; return $ rootPath . '/' ; }
Return path to the Laravel project root
@return string
Return path to the Laravel project root