src/Models/Documentation.php
public function getIndex($version)
    {
        return $this->cache->remember(function() use($version) {
            $path = base_path(config('larecipe.docs.path').'/'.$version.'/index.md');

            if ($this->files->exists($path)) {
                $parsedContent = $this->parse($this->files->get($path));

                return $this->replaceLinks($version, $parsedContent);
            }

            return null;
        }, 'larecipe.docs.'.$version.'.index');
    }
public function getIndex($version)
    {
        return $this->cache->remember(function() use($version) {
            $path = base_path(config('larecipe.docs.path').'/'.$version.'/index.md');

            if ($this->files->exists($path)) {
                $parsedContent = $this->parse($this->files->get($path));

                return $this->replaceLinks($version, $parsedContent);
            }

            return null;
        }, 'larecipe.docs.'.$version.'.index');
    }
public function getIndex ( $ version ) { return $ this -> cache -> remember ( function ( ) use ( $ version ) { $ path = base_path ( config ( 'larecipe.docs.path' ) . '/' . $ version . '/index.md' ) ; if ( $ this -> files -> exists ( $ path ) ) { $ parsedContent = $ this -> parse ( $ this -> files -> get ( $ path ) ) ; return $ this -> replaceLinks ( $ version , $ parsedContent ) ; } return null ; } , 'larecipe.docs.' . $ version . '.index' ) ; }
Get the documentation index page.

@param  string  $version
@return string
Get the documentation index page .