adrema/app/Setting/GeneralSettings.php

27 lines
476 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;
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);
}
}