added admin log to setting

pull/44/head
A1Gard 6 months ago
parent 4f0928f8e2
commit a38f273f04

@ -46,6 +46,7 @@ class SettingController extends Controller
$set->type = $request->type; $set->type = $request->type;
$set->size = $request->size; $set->size = $request->size;
$set->save(); $set->save();
logAdmin(__METHOD__,__CLASS__,$set->id);
return redirect()->back()->with(['message' => __('Setting added to website')]); return redirect()->back()->with(['message' => __('Setting added to website')]);
} }
@ -89,6 +90,7 @@ class SettingController extends Controller
} }
} }
} }
logAdmin(__METHOD__,__CLASS__,null);
return redirect()->back()->with(['message' => __('Setting of website updated')]); return redirect()->back()->with(['message' => __('Setting of website updated')]);
} }

Loading…
Cancel
Save