public function homePage(ProductRepository $products, CategoryRepository $categories) { return view('admin.main')->with('products', $products->paginate())->with('cats', $categories->all(['name']))->with('homegrids', HomeGrid::all()); }
public function homePage(ProductRepository $products, CategoryRepository $categories) { return view('admin.main')->with('products', $products->paginate())->with('cats', $categories->all(['name']))->with('homegrids', HomeGrid::all()); }