public function product($id) { $categories = $this->categories->get()->linkNodes()->toTree(); $product = $this->products->find($id); $user = $product->user()->get()->first(); $page = \Counter::showAndCount('produto', $product->id); $banners = $this->banners->all(); return view('frontend.product', compact('categories', 'product', 'user', 'page', 'banners')); }