remove unnecessary code

This commit is contained in:
spencerrlongg 2023-09-20 14:34:42 -05:00
parent cbef531811
commit a9123754f5

View file

@ -401,10 +401,6 @@ class AssetsController extends Controller
if ($asset->save()) {
if($asset->wasChanged('purchase_date') && $asset->eol_explicit == false){
$asset_eol_date = Carbon::parse($asset->purchase_date)->addMonths($asset->model->eol)->format('Y-m-d');
$asset->update(['asset_eol_date' => $asset_eol_date]);
}
return redirect()->route('hardware.show', $assetId)
->with('success', trans('admin/hardware/message.update.success'));
}