src/Controllers/MarkdownController.php
public function show($posts, Request $request)
    {

        $file = $posts;
        $markdown = $this->pagekit->markdown($file);

        $view = "page::missing-page";

        if ($request->has('page')) :
            $markdown = $this->pagekit->markdown($request->page, $posts);
        endif;

        if (!empty($markdown)) :
            $view = 'page::markdown.show';
        endif;

        return view($view, compact('markdown'));

    }
public function show($posts, Request $request)
    {

        $file = $posts;
        $markdown = $this->pagekit->markdown($file);

        $view = "page::missing-page";

        if ($request->has('page')) :
            $markdown = $this->pagekit->markdown($request->page, $posts);
        endif;

        if (!empty($markdown)) :
            $view = 'page::markdown.show';
        endif;

        return view($view, compact('markdown'));

    }
public function show ( $ posts , Request $ request ) { $ file = $ posts ; $ markdown = $ this -> pagekit -> markdown ( $ file ) ; $ view = "page::missing-page" ; if ( $ request -> has ( 'page' ) ) : $ markdown = $ this -> pagekit -> markdown ( $ request -> page , $ posts ) ; endif ; if ( ! empty ( $ markdown ) ) : $ view = 'page::markdown.show' ; endif ; return view ( $ view , compact ( 'markdown' ) ) ; }
Show a specific page params

@param  $posts
@param  Request $request
@return string
Show a specific page params