public function category($id, Category $category, Product $product)
 {
     $categories = $category->all();
     $category = $category->find($id);
     $products = $product->ofCategory($id)->get();
     return view('store.category', compact('categories', 'category', 'products'));
 }
 public function category($id)
 {
     $categories = Category::all();
     $category = Category::find($id);
     $products = Product::ofCategory($id)->get();
     return view('store.category', compact('categories', 'products', 'category'));
 }