2023-02-01 19:33:36 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Settings;
|
|
|
|
|
|
|
|
use Spatie\LaravelSettings\Settings;
|
|
|
|
|
|
|
|
class GeneralSettings extends Settings
|
|
|
|
{
|
|
|
|
|
|
|
|
public string $main_site;
|
|
|
|
|
2023-02-03 16:38:03 +00:00
|
|
|
public string $credits_display_name;
|
2023-02-01 19:33:36 +00:00
|
|
|
|
|
|
|
public float $initial_user_credits;
|
2023-02-03 16:38:03 +00:00
|
|
|
|
|
|
|
public int $initial_server_limit;
|
|
|
|
|
|
|
|
public string $recaptcha_site_key;
|
|
|
|
|
|
|
|
public string $recaptcha_secret_key;
|
|
|
|
|
|
|
|
public bool $recaptcha_enabled;
|
|
|
|
|
|
|
|
public string $phpmyadmin_url;
|
|
|
|
|
|
|
|
public bool $alert_enabled;
|
|
|
|
|
|
|
|
public string $alert_type;
|
|
|
|
|
|
|
|
public string $alert_message;
|
|
|
|
|
|
|
|
public string $theme;
|
|
|
|
|
2023-02-01 19:33:36 +00:00
|
|
|
//public int $initial_user_role; wait for Roles & Permissions PR.
|
|
|
|
|
|
|
|
public static function group(): string
|
|
|
|
{
|
|
|
|
return 'general';
|
|
|
|
}
|
2023-02-03 16:38:03 +00:00
|
|
|
|
|
|
|
public static function encrypted(): array
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'recaptcha_site_key',
|
|
|
|
'recaptcha_secret_key'
|
|
|
|
];
|
|
|
|
}
|
2023-02-01 19:33:36 +00:00
|
|
|
}
|