public function show(TagRequest $request, Tag $tag)
    {

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

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

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

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

@param Request $request
@param Model   $tag

@return Response
Display tag .