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 compose(View $view) { $view->with('catset', $this->home->getCatSet()); $view->with('homegrids', HomeGrid::all()); $view->with('subcats', $this->home->getSubCatSet()); }