/** * Remove the specified branch from storage. * * @param int $id * @return Response */ public function destroy($id) { Deduction::destroy($id); return Redirect::route('deductions.index'); }
/** * Remove the specified branch from storage. * * @param int $id * @return Response */ public function destroy($id) { $deduction = Deduction::findOrFail($id); Deduction::destroy($id); Audit::logaudit('Deductions', 'delete', 'deleted: ' . $deduction->deduction_name); return Redirect::route('deductions.index'); }
public function destroy($id) { Deduction::destroy($id); Session::flash('message', 'Sukses menghapus Income Payroll!!'); }