/** * list all articles belongs to certain tag * @param $req * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function tag($req) { $p = TAG::where('slug', $req)->first(); $pages = $p->pages()->paginate($this->paginate); return view($this->view->index_tag, compact('pages')); }