public function show(NewsRequest $request, News $news)
    {

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

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

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

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

@param Request $request
@param Model   $news

@return Response
Display news .