/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { HomeGrid::find($id)->delete(); }
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()); }