public function delete(Request $request, $id) { $b = Itemsubgroup::find($id); //print_r($b); $b->itemgroupid = $request->input('itemgroupid'); $b->name = $request->input('name'); $b->delete(); return Redirect('itemsubgroup'); }
public function addnew() { $data['item_sub_groups'] = Itemsubgroup::where('itemgroupid', 1)->get(); return view('createfactoryitem', $data); }