Example #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $inventory = InventoryModel::find($id);
     $inventory->delete();
     // notif
     Session::flash('message', 'data di hapus');
     // redirect
     return Redirect::to('inventory');
 }