securityService = $securityService; } public function save(SaveSecuritySettings $request) { $this->securityService->save($request->secPolicy, [ 'graceperiod' => $request->graceperiod, 'pwExpiry' => $request->pwExpiry, 'enforce2fa' => $request->enforce2fa, 'requirePMC' => $request->requirePMC ]); return redirect() ->back() ->with('success', __('Settings saved.')); } }