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