예제 #1
0
 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');
 }
예제 #2
0
 public function addnew()
 {
     $data['item_sub_groups'] = Itemsubgroup::where('itemgroupid', 1)->get();
     return view('createfactoryitem', $data);
 }