public function downloaded($name)
    {
        if ($this->local($name)) {
            return $this->filesystem->isDirectory(base_path("hooks/{$name}"))
                && $this->filesystem->exists(base_path("hooks/{$name}/composer.json"));
        }

        return $this->filesystem->isDirectory(base_path("vendor/{$name}"));
    }
public function downloaded($name)
    {
        if ($this->local($name)) {
            return $this->filesystem->isDirectory(base_path("hooks/{$name}"))
                && $this->filesystem->exists(base_path("hooks/{$name}/composer.json"));
        }

        return $this->filesystem->isDirectory(base_path("vendor/{$name}"));
    }
public function downloaded ( $ name ) { if ( $ this -> local ( $ name ) ) { return $ this -> filesystem -> isDirectory ( base_path ( "hooks/{$name}" ) ) && $ this -> filesystem -> exists ( base_path ( "hooks/{$name}/composer.json" ) ) ; } return $ this -> filesystem -> isDirectory ( base_path ( "vendor/{$name}" ) ) ; }
Check if hook is downloaded.

@param $name

@return bool
Check if hook is downloaded .