original_string: public function show(PortfolioRequest $request, Portfolio $portfolio)
      {
  
          if ($portfolio->exists) {
              $view = 'portfolio::portfolio.show';
          } else {
              $view = 'portfolio::portfolio.new';
          }
  
          return $this->response->title(trans('app.view') . ' ' . trans('portfolio::portfolio.name'))
              ->data(compact('portfolio'))
              ->view($view, true)
              ->output();
      }
code: public function show(PortfolioRequest $request, Portfolio $portfolio)
      {
  
          if ($portfolio->exists) {
              $view = 'portfolio::portfolio.show';
          } else {
              $view = 'portfolio::portfolio.new';
          }
  
          return $this->response->title(trans('app.view') . ' ' . trans('portfolio::portfolio.name'))
              ->data(compact('portfolio'))
              ->view($view, true)
              ->output();
      }
code_tokens: public function show ( PortfolioRequest $ request , Portfolio $ portfolio ) { if ( $ portfolio -> exists ) { $ view = 'portfolio::portfolio.show' ; } else { $ view = 'portfolio::portfolio.new' ; } return $ this -> response -> title ( trans ( 'app.view' ) . ' ' . trans ( 'portfolio::portfolio.name' ) ) -> data ( compact ( 'portfolio' ) ) -> view ( $ view , true ) -> output ( ) ; }
docstring: Display portfolio.
  
  @param Request $request
  @param Model   $portfolio
  
  @return Response
docstring_tokens: Display portfolio .