public function show(BlogRequest $request, Blog $blog)
    {

        if ($blog->exists) {
            $view = 'blog::blog.show';
        } else {
            $view = 'blog::blog.new';
        }

        return $this->response->title(trans('app.view') . ' ' . trans('blog::blog.name'))
            ->data(compact('blog'))
            ->view($view, true)
            ->output();
    }
public function show(BlogRequest $request, Blog $blog)
    {

        if ($blog->exists) {
            $view = 'blog::blog.show';
        } else {
            $view = 'blog::blog.new';
        }

        return $this->response->title(trans('app.view') . ' ' . trans('blog::blog.name'))
            ->data(compact('blog'))
            ->view($view, true)
            ->output();
    }
public function show ( BlogRequest $ request , Blog $ blog ) { if ( $ blog -> exists ) { $ view = 'blog::blog.show' ; } else { $ view = 'blog::blog.new' ; } return $ this -> response -> title ( trans ( 'app.view' ) . ' ' . trans ( 'blog::blog.name' ) ) -> data ( compact ( 'blog' ) ) -> view ( $ view , true ) -> output ( ) ; }
Display blog.

@param Request $request
@param Model   $blog

@return Response
Display blog .