mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 16:45:32 +00:00
Add ability to set provided settings
This commit is contained in:
@ -23,6 +23,11 @@ class Settings
|
||||
$this->update(['full_multiple_companies_support' => 1]);
|
||||
}
|
||||
|
||||
public function set(array $attributes)
|
||||
{
|
||||
$this->update($attributes);
|
||||
}
|
||||
|
||||
private function update(array $attributes)
|
||||
{
|
||||
Setting::unguarded(fn() => $this->setting->update($attributes));
|
||||
|
||||
Reference in New Issue
Block a user