completed liman for using in sell and buy

This commit is contained in:
2026-05-24 22:29:43 +03:30
parent 81d4aa8926
commit 7f0f91701e
4 changed files with 591 additions and 99 deletions
+4 -1
View File
@@ -13,6 +13,9 @@ class ConfigService
public function UpdateConfig($name, $value)
{
return Setting::where('key', $name)->update(['value' => $value]);
return Setting::updateOrCreate(
['key' => $name],
['value' => $value]
);
}
}