示例#1
0
 /**
  * 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());
 }
示例#3
0
 public function compose(View $view)
 {
     $view->with('catset', $this->home->getCatSet());
     $view->with('homegrids', HomeGrid::all());
     $view->with('subcats', $this->home->getSubCatSet());
 }