/** * @param $id * @return \Illuminate\Contracts\View\View */ public function show($id) { $crumbs = []; Category::buildCrumb($id, $crumbs); $categories = Category::whereParentId($id)->get(); $this->share('categories', $categories); $this->share('count', $categories->count()); $this->share('crumbs', $crumbs); $this->share('id', $id); return $this->view('content.category.show'); }