fix: 🔥 Removed default values from Settings class variables
This commit is contained in:
parent
b4e1b5aeca
commit
6497f6bf90
11 changed files with 22 additions and 73 deletions
|
@ -7,15 +7,10 @@ use Spatie\LaravelSettings\Settings;
|
|||
class DiscordSettings extends Settings
|
||||
{
|
||||
public ?string $bot_token;
|
||||
|
||||
public ?string $client_id;
|
||||
|
||||
public ?string $client_secret;
|
||||
|
||||
public ?string $guild_id;
|
||||
|
||||
public ?string $invite_url;
|
||||
|
||||
public ?string $role_id;
|
||||
|
||||
public static function group(): string
|
||||
|
|
|
@ -6,13 +6,13 @@ use Spatie\LaravelSettings\Settings;
|
|||
|
||||
class GeneralSettings extends Settings
|
||||
{
|
||||
public bool $store_enabled = false;
|
||||
public bool $store_enabled;
|
||||
public string $credits_display_name;
|
||||
public bool $recaptcha_enabled;
|
||||
public string $recaptcha_site_key;
|
||||
public string $recaptcha_secret_key;
|
||||
public string $phpmyadmin_url;
|
||||
public bool $alert_enabled = false;
|
||||
public bool $alert_enabled;
|
||||
public string $alert_type;
|
||||
public string $alert_message;
|
||||
public string $theme;
|
||||
|
|
|
@ -7,19 +7,12 @@ use Spatie\LaravelSettings\Settings;
|
|||
class InvoiceSettings extends Settings
|
||||
{
|
||||
public ?string $company_address;
|
||||
|
||||
public ?string $company_mail;
|
||||
|
||||
public ?string $company_name;
|
||||
|
||||
public ?string $company_phone;
|
||||
|
||||
public ?string $company_vat;
|
||||
|
||||
public ?string $company_website;
|
||||
|
||||
public bool $enabled = false;
|
||||
|
||||
public bool $enabled;
|
||||
public ?string $prefix;
|
||||
|
||||
public static function group(): string
|
||||
|
|
|
@ -7,14 +7,10 @@ use Spatie\LaravelSettings\Settings;
|
|||
class LocaleSettings extends Settings
|
||||
{
|
||||
public ?string $available;
|
||||
|
||||
public bool $clients_can_change = false;
|
||||
|
||||
public bool $clients_can_change;
|
||||
public ?string $datatables;
|
||||
|
||||
public string $default;
|
||||
|
||||
public bool $dynamic = false;
|
||||
public bool $dynamic;
|
||||
|
||||
public static function group(): string
|
||||
{
|
||||
|
|
|
@ -7,22 +7,14 @@ use Spatie\LaravelSettings\Settings;
|
|||
class MailSettings extends Settings
|
||||
{
|
||||
public ?string $mail_host;
|
||||
|
||||
public ?int $mail_port;
|
||||
|
||||
public ?string $mail_username;
|
||||
|
||||
public ?string $mail_password;
|
||||
|
||||
public ?string $mail_encryption;
|
||||
|
||||
public ?string $mail_from_address;
|
||||
|
||||
public ?string $mail_from_name;
|
||||
|
||||
public ?string $mail_mailer;
|
||||
|
||||
public bool $mail_enabled = false;
|
||||
public bool $mail_enabled;
|
||||
|
||||
public static function group(): string
|
||||
{
|
||||
|
|
|
@ -7,11 +7,8 @@ use Spatie\LaravelSettings\Settings;
|
|||
class PterodactylSettings extends Settings
|
||||
{
|
||||
public string $admin_token;
|
||||
|
||||
public string $user_token;
|
||||
|
||||
public string $panel_url;
|
||||
|
||||
public int $per_page_limit;
|
||||
|
||||
public static function group(): string
|
||||
|
|
|
@ -7,15 +7,10 @@ use Spatie\LaravelSettings\Settings;
|
|||
class ReferralSettings extends Settings
|
||||
{
|
||||
public string $allowed;
|
||||
|
||||
public bool $always_give_commission = false;
|
||||
|
||||
public bool $enabled = false;
|
||||
|
||||
public bool $always_give_commission;
|
||||
public bool $enabled;
|
||||
public ?float $reward;
|
||||
|
||||
public string $mode;
|
||||
|
||||
public ?int $percentage;
|
||||
|
||||
public static function group(): string
|
||||
|
|
|
@ -7,12 +7,9 @@ use Spatie\LaravelSettings\Settings;
|
|||
class ServerSettings extends Settings
|
||||
{
|
||||
public int $allocation_limit;
|
||||
|
||||
public bool $creation_enabled = false;
|
||||
|
||||
public bool $enable_upgrade = false;
|
||||
|
||||
public bool $charge_first_hour = false;
|
||||
public bool $creation_enabled;
|
||||
public bool $enable_upgrade;
|
||||
public bool $charge_first_hour;
|
||||
|
||||
public static function group(): string
|
||||
{
|
||||
|
|
|
@ -6,8 +6,7 @@ use Spatie\LaravelSettings\Settings;
|
|||
|
||||
class TicketSettings extends Settings
|
||||
{
|
||||
public bool $enabled = false;
|
||||
|
||||
public bool $enabled;
|
||||
public string $notify;
|
||||
|
||||
public static function group(): string
|
||||
|
|
|
@ -7,28 +7,17 @@ use Spatie\LaravelSettings\Settings;
|
|||
class UserSettings extends Settings
|
||||
{
|
||||
public float $credits_reward_after_verify_discord;
|
||||
|
||||
public float $credits_reward_after_verify_email;
|
||||
|
||||
public bool $force_discord_verification = false;
|
||||
|
||||
public bool $force_email_verification = false;
|
||||
|
||||
public bool $force_discord_verification;
|
||||
public bool $force_email_verification;
|
||||
public float $initial_credits;
|
||||
|
||||
public int $initial_server_limit;
|
||||
|
||||
public float $min_credits_to_make_server;
|
||||
|
||||
public int $server_limit_after_irl_purchase;
|
||||
|
||||
public int $server_limit_after_verify_discord;
|
||||
|
||||
public int $server_limit_after_verify_email;
|
||||
|
||||
public bool $register_ip_check = false;
|
||||
|
||||
public bool $creation_enabled = false;
|
||||
public bool $register_ip_check;
|
||||
public bool $creation_enabled;
|
||||
|
||||
public static function group(): string
|
||||
{
|
||||
|
|
|
@ -8,18 +8,14 @@ class WebsiteSettings extends Settings
|
|||
{
|
||||
|
||||
|
||||
public bool $show_imprint = false;
|
||||
|
||||
public bool $show_privacy = false;
|
||||
|
||||
public bool $show_tos = false;
|
||||
|
||||
public bool $useful_links_enabled = false;
|
||||
public bool $enable_login_logo = false;
|
||||
public bool $show_imprint;
|
||||
public bool $show_privacy;
|
||||
public bool $show_tos;
|
||||
public bool $useful_links_enabled;
|
||||
public bool $enable_login_logo;
|
||||
public ?string $seo_title;
|
||||
|
||||
public ?string $seo_description;
|
||||
public bool $motd_enabled = false;
|
||||
public bool $motd_enabled;
|
||||
|
||||
public ?string $motd_message;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue