adrema/app/Setting/GeneralSettings.php

39 lines
632 B
PHP
Raw Normal View History

<?php
namespace App\Setting;
use Spatie\LaravelSettings\Settings;
class GeneralSettings extends Settings
{
/** @var array<int, string> */
public array $modules;
public bool $single_view;
2021-11-23 01:02:18 +01:00
/** @var array<int, int> */
public array $allowed_nami_accounts;
/**
* @return array<int, string>
*/
public function moduleOptions(): array
{
return [
'bill',
];
}
public static function group(): string
{
return 'general';
}
2021-11-19 00:53:19 +01:00
public function hasModule(string $module): bool
{
return in_array($module, $this->modules);
}
}