PhyrePanel-mirror/web/app/Settings.php

30 lines
632 B
PHP
Raw Normal View History

2024-04-22 11:14:05 +00:00
<?php
namespace App;
class Settings
{
public static $general = [
'brand_name' => 'Phyre Panel',
'master_domain' => '',
'master_email' => '',
'master_country' => '',
'master_locality' => '',
'organization_name' => '',
];
public static function general()
{
$settings = setting('general');
if (! empty($settings)) {
foreach ($settings as $key => $value) {
if (isset(self::$general[$key])) {
self::$general[$key] = $value;
}
}
}
return self::$general;
}
}