39 lines
		
	
	
		
			632 B
		
	
	
	
		
			PHP
		
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			632 B
		
	
	
	
		
			PHP
		
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Setting;
 | |
| 
 | |
| use Spatie\LaravelSettings\Settings;
 | |
| 
 | |
| class GeneralSettings extends Settings
 | |
| {
 | |
| 
 | |
|     /** @var array<int, string> */
 | |
|     public array $modules;
 | |
| 
 | |
|     public bool $single_view;
 | |
| 
 | |
|     /** @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';
 | |
|     }
 | |
| 
 | |
|     public function hasModule(string $module): bool
 | |
|     {
 | |
|         return in_array($module, $this->modules);
 | |
|     }
 | |
| 
 | |
| }
 |