/** * Get tagged posts * * @param Illuminate\Http\Request $request * @return Response */ public function tag(Request $request) { $tag = $request->input('tag'); $posts = $this->blog_gestion->indexTag($this->nbrPages, $tag); $links = $posts->appends(compact('tag'))->render(); $info = trans('front/blog.info-tag') . '<strong>' . $this->blog_gestion->getTagById($tag) . '</strong>'; return view('front.blog.index', compact('posts', 'links', 'info')); }