public function show($id) { $image = new Image(); $tag = new Tag(); $products = new Product(); $product = $products->productId($id); $category = new Category(); $categories = $category->all(); view('front.single', compact('product', 'image', 'tag', 'categories')); }