src/Models/Documentation.php
public function get($version, $page, $data = [])
    {
        return $this->cache->remember(function() use($version, $page, $data) {
            $path = base_path(config('larecipe.docs.path').'/'.$version.'/'.$page.'.md');

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

                $parsedContent = $this->replaceLinks($version, $parsedContent);

                return $this->renderBlade($parsedContent, $data);
            }

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

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

                $parsedContent = $this->replaceLinks($version, $parsedContent);

                return $this->renderBlade($parsedContent, $data);
            }

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

@param $version
@param $page
@param array $data
@return mixed
Get the given documentation page .