protected function getPathToTemplates($template = null)
    {
        $template = Helpers::getPathWithSlash($template ?: Config::getDefaultTemplateName());
        $basePath = base_path(Config::getTemplatesPath() . $template);
        $path = Helpers::getPathWithSlash($basePath);

        if (!$this->isFileExists($path)) {
            throw new Exception('Invalid template. Make sure the following path exists: "' . $path . '"');
        }

        return $path;
    }
protected function getPathToTemplates($template = null)
    {
        $template = Helpers::getPathWithSlash($template ?: Config::getDefaultTemplateName());
        $basePath = base_path(Config::getTemplatesPath() . $template);
        $path = Helpers::getPathWithSlash($basePath);

        if (!$this->isFileExists($path)) {
            throw new Exception('Invalid template. Make sure the following path exists: "' . $path . '"');
        }

        return $path;
    }
protected function getPathToTemplates ( $ template = null ) { $ template = Helpers :: getPathWithSlash ( $ template ? : Config :: getDefaultTemplateName ( ) ) ; $ basePath = base_path ( Config :: getTemplatesPath ( ) . $ template ) ; $ path = Helpers :: getPathWithSlash ( $ basePath ) ; if ( ! $ this -> isFileExists ( $ path ) ) { throw new Exception ( 'Invalid template. Make sure the following path exists: "' . $ path . '"' ) ; } return $ path ; }
Gets the path to templates

@param string $template

@return string
Gets the path to templates