public function show(QuestionRequest $request, Question $question)
    { 

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

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

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

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

@param Request $request
@param Model   $question

@return Response
Display question .