Add ability to set provided settings
This commit is contained in:
parent
8ac4d3aeea
commit
52c733b31d
1 changed files with 5 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue