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