mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
26 lines
479 B
PHP
26 lines
479 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Support;
|
||
|
|
||
|
use App\Models\Setting;
|
||
|
|
||
|
class Settings
|
||
|
{
|
||
|
private Setting $setting;
|
||
|
|
||
|
public function __construct()
|
||
|
{
|
||
|
$this->setting = Setting::factory()->create();
|
||
|
}
|
||
|
|
||
|
public function enableMultipleFullCompanySupport()
|
||
|
{
|
||
|
$this->update(['full_multiple_companies_support' => 1]);
|
||
|
}
|
||
|
|
||
|
private function update(array $attributes)
|
||
|
{
|
||
|
Setting::unguarded(fn() => $this->setting->update($attributes));
|
||
|
}
|
||
|
}
|