$showRecaptchaWarning, ]); } /** * @throws \App\Exceptions\Model\DataValidationException */ public function update(AdvancedSettingsFormRequest $request): RedirectResponse { foreach ($request->normalize() as $key => $value) { Setting::set('settings::' . $key, $value); } $this->kernel->call('queue:restart'); $this->alert->success('Advanced settings have been updated successfully and the queue worker was restarted to apply these changes.')->flash(); return redirect()->route('admin.settings.advanced'); } }