completed liman for using in sell and buy
This commit is contained in:
@@ -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]
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user