public function getDeleteDetail($id) { $saleDetail = SAleDetail::find($id); $saleDetail->delete(); Session::flash('message', 'Sale Detail Successfully Deleted'); return Redirect::to('sales/index'); }
public function getDeleteDetail($id) { $saleDetail = SAleDetail::find($id); $saleDetail->delete(); $message = array('Sale Detail Successfully Deleted'); return new JsonResponse($message); }