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();
    }
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();
    }
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 ( ) ; }
Display gallery.

@param Request $request
@param Model   $gallery

@return Response
Display gallery .