public function getModulePath($slug)
    {
        $module = studly_case($slug);

        if (\File::exists($this->getPath()."/{$module}/")) {
            return $this->getPath()."/{$module}/";
        }

        return $this->getPath()."/{$slug}/";
    }
public function getModulePath($slug)
    {
        $module = studly_case($slug);

        if (\File::exists($this->getPath()."/{$module}/")) {
            return $this->getPath()."/{$module}/";
        }

        return $this->getPath()."/{$slug}/";
    }
public function getModulePath ( $ slug ) { $ module = studly_case ( $ slug ) ; if ( \ File :: exists ( $ this -> getPath ( ) . "/{$module}/" ) ) { return $ this -> getPath ( ) . "/{$module}/" ; } return $ this -> getPath ( ) . "/{$slug}/" ; }
Get path for the specified module.

@param string $slug

@return string
Get path for the specified module .