Esempio n. 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     //
     $parentid = Bomitem::find($id)->parent_item_id;
     Bomitem::destroy($id);
     return redirect('product/boms/' . $parentid . '/edit');
 }