Error click a category in navbar

error in click of a menu

Method Illuminate\Database\Query\Builder::getCategoryProductWithFilter does not exist.

Purvesh had replied 10 months ago

Try to Replace the code in the file called CategoryViewController.php


* @param Request $request
* @param $slug
* @return \Illuminate\Http\Response
public function view(Request $request, $slug)
  $productsOnCategoryPage = 9;

  $category = $this->repository->findByKey($slug);
  $catProducts = $this->repository->getCategoryProductWithFilter(
  $products = $this->repository->paginateProducts(

 return view('category.view')
     ->with('category', $category)
     ->with('params', $request->all())
     ->with('products', $products);

Purvesh had replied 10 months ago

This bug has been fixed in latest release.

thanks for raising the bug.