mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
Add ability to set provided settings
This commit is contained in:
parent
8ac4d3aeea
commit
52c733b31d
|
@ -23,6 +23,11 @@ class Settings
|
||||||
$this->update(['full_multiple_companies_support' => 1]);
|
$this->update(['full_multiple_companies_support' => 1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function set(array $attributes)
|
||||||
|
{
|
||||||
|
$this->update($attributes);
|
||||||
|
}
|
||||||
|
|
||||||
private function update(array $attributes)
|
private function update(array $attributes)
|
||||||
{
|
{
|
||||||
Setting::unguarded(fn() => $this->setting->update($attributes));
|
Setting::unguarded(fn() => $this->setting->update($attributes));
|
||||||
|
|
Loading…
Reference in a new issue