theme controller

This commit is contained in:
2026-04-13 10:05:09 +08:00
parent 0309d97a51
commit 89981354e6
2 changed files with 4 additions and 5 deletions

View File

@@ -71,9 +71,8 @@ class SystemSettingsController extends Controller
'settings.themeMode' => 'nullable|string|in:light,dark,system',
]);
$userId = auth()->id();
foreach ($validated['settings'] as $key => $value) {
updateSetting($key, $value, $userId);
updateSetting($key, $value);
}
return redirect()->back()->with('success', __('Brand settings updated successfully.'));