src/Commands/Create.php
public function moduleExists()
    {
        $location1 = $this->files->isDirectory(base_path('Modules/'.$this->module));
        $location2 = $this->files->isDirectory(base_path('vendor/typicms/'.strtolower($this->module)));

        return $location1 || $location2;
    }
public function moduleExists()
    {
        $location1 = $this->files->isDirectory(base_path('Modules/'.$this->module));
        $location2 = $this->files->isDirectory(base_path('vendor/typicms/'.strtolower($this->module)));

        return $location1 || $location2;
    }
public function moduleExists ( ) { $ location1 = $ this -> files -> isDirectory ( base_path ( 'Modules/' . $ this -> module ) ) ; $ location2 = $ this -> files -> isDirectory ( base_path ( 'vendor/typicms/' . strtolower ( $ this -> module ) ) ) ; return $ location1 || $ location2 ; }
Check if the module exists.

@return bool
Check if the module exists .