/** * Display a listing of the Product. * * @param Request $request * @return Response */ public function index(Request $request) { $this->productRepository->pushCriteria(new RequestCriteria($request)); $products = $this->productRepository->with('subindustry')->paginate(25); return view('products.index')->with('products', $products); }