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'); }
public function productCategoryItems($id) { return view('home.catalog.productCategoryItems', ['productCategory' => ProductCategory::findOrFail($id)]); }