public function saveOrder(Request $request)
 {
     $productCategory = ProductCategory::findOrFail($request->get('product-category-id'));
     $productCategory->menu_order = $request->get('product-category-order');
     $productCategory->save();
     return redirect('/admin/productCategories');
 }
예제 #2
0
 public function productCategoryItems($id)
 {
     return view('home.catalog.productCategoryItems', ['productCategory' => ProductCategory::findOrFail($id)]);
 }