/** * @param $id * @return \Illuminate\Contracts\View\View */ public function show($id) { $category = new Category($id); $this->events->fire(new OnCategoryShow($this->app, $this->view, $category->getModel())); $this->seo->setTitleMeta($category->getTitle() . ' - {sitename}'); $this->seo->setDescriptionMeta($category->getDescription()); $this->seo->setKeywordsMeta($category->getKeywords()); $this->share('category', $category->getModel()); $this->share('name', $category->getTitle()); $this->share('list', $category->getList()); $this->share('relations', $category->getRelationCategoryList()); return $this->view($category->getShowTemplate()); }