GeneralSettings.php 784 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Settings;
  3. use Spatie\LaravelSettings\Settings;
  4. class GeneralSettings extends Settings
  5. {
  6. //instead of showing Credits, show something like example 'Emeralds'
  7. public string $credits_display_name;
  8. //url to the main site
  9. public string $main_site;
  10. //check the ip during register for dupes
  11. public bool $register_ip_check;
  12. //the initial amount of credits given to the user on register
  13. public float $initial_user_credits;
  14. //the initial amount of credits given to the user on register
  15. public float $initial_server_limit;
  16. //the initial role given to the user on register
  17. //public int $initial_user_role; wait for Roles & Permissions PR.
  18. public static function group(): string
  19. {
  20. return 'general';
  21. }
  22. }