2021-06-05 09:26:32 +00:00
< ? php
2021-06-22 15:13:24 +00:00
namespace Database\Seeders\Seeds ;
2021-06-05 09:26:32 +00:00
2022-01-05 07:57:41 +00:00
use App\Models\Settings ;
2021-06-05 09:26:32 +00:00
use Illuminate\Database\Seeder ;
2022-01-05 07:57:41 +00:00
class SettingsSeeder extends Seeder
2021-06-05 09:26:32 +00:00
{
/**
* Run the database seeds .
*
* @ return void
*/
public function run ()
{
//initials
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::USER:INITIAL_CREDITS' ,
2021-06-07 15:30:19 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => '250' ,
'type' => 'integer' ,
'description' => 'The initial amount of credits the user starts with.' ,
2021-06-05 09:26:32 +00:00
]);
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
2022-06-07 15:26:17 +00:00
'key' => 'SETTINGS::USER:INITIAL_SERVER_LIMIT' ,
2021-06-07 15:30:19 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => '1' ,
'type' => 'integer' ,
'description' => 'The initial server limit the user starts with.' ,
2021-06-05 09:26:32 +00:00
]);
//verify email event
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::USER:CREDITS_REWARD_AFTER_VERIFY_EMAIL' ,
2021-06-07 15:30:19 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => '250' ,
'type' => 'integer' ,
'description' => 'Increase in credits after the user has verified their email account.' ,
2021-06-05 09:26:32 +00:00
]);
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::USER:SERVER_LIMIT_REWARD_AFTER_VERIFY_EMAIL' ,
2021-06-07 15:30:19 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => '2' ,
'type' => 'integer' ,
'description' => 'Increase in server limit after the user has verified their email account.' ,
2021-06-05 09:26:32 +00:00
]);
//verify discord event
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::USER:CREDITS_REWARD_AFTER_VERIFY_DISCORD' ,
2021-06-27 13:53:49 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => '375' ,
'type' => 'integer' ,
'description' => 'Increase in credits after the user has verified their discord account.' ,
2021-06-05 09:26:32 +00:00
]);
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::USER:SERVER_LIMIT_REWARD_AFTER_VERIFY_DISCORD' ,
2021-06-07 15:30:19 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => '2' ,
'type' => 'integer' ,
'description' => 'Increase in server limit after the user has verified their discord account.' ,
2021-06-05 09:26:32 +00:00
]);
//other
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::USER:MINIMUM_REQUIRED_CREDITS_TO_MAKE_SERVER' ,
2021-06-07 15:30:19 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => '50' ,
'type' => 'integer' ,
'description' => 'The minimum amount of credits the user would need to make a server.' ,
2021-06-22 15:26:42 +00:00
]);
//purchasing
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::USER:SERVER_LIMIT_AFTER_IRL_PURCHASE' ,
2021-06-22 15:26:42 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => '10' ,
'type' => 'integer' ,
2021-06-22 19:25:04 +00:00
'description' => 'updates the users server limit to this amount (unless the user already has a higher server limit) after making a purchase with real money, set to 0 to ignore this.' ,
2021-06-05 09:26:32 +00:00
]);
2021-06-26 20:04:23 +00:00
2021-06-27 13:53:49 +00:00
//force email and discord verification
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::USER:FORCE_EMAIL_VERIFICATION' ,
2021-06-27 13:53:49 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 'false' ,
'type' => 'boolean' ,
'description' => 'Force an user to verify the email adress before creating a server / buying credits.' ,
2021-06-26 20:04:23 +00:00
]);
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::USER:FORCE_DISCORD_VERIFICATION' ,
2021-06-27 13:53:49 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 'false' ,
'type' => 'boolean' ,
'description' => 'Force an user to link an Discord Account before creating a server / buying credits.' ,
2021-06-26 20:04:23 +00:00
]);
2021-06-27 13:53:49 +00:00
//disable ip check on register
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:REGISTER_IP_CHECK' ,
2021-06-27 13:53:49 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 'true' ,
'type' => 'boolean' ,
'description' => 'Prevent users from making multiple accounts using the same IP address' ,
2021-06-27 13:53:49 +00:00
]);
2021-07-05 18:47:29 +00:00
//per_page on allocations request
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SERVER:ALLOCATION_LIMIT' ,
2021-07-05 18:47:29 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => '200' ,
'type' => 'integer' ,
'description' => 'The maximum amount of allocations to pull per node for automatic deployment, if more allocations are being used than this limit is set to, no new servers can be created!' ,
2021-07-05 18:47:29 +00:00
]);
2023-01-05 23:01:23 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::USER:MINIMUM_REQUIRED_CREDITS_TO_MAKE_SERVER' ,
], [
'value' => '0' ,
'type' => 'integer' ,
'description' => 'The minimum amount of credits user has to have to create a server. Can be overridden by package limits.'
]);
2021-07-05 18:47:29 +00:00
2021-08-02 17:25:33 +00:00
//credits display name
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:CREDITS_DISPLAY_NAME' ,
2021-08-02 17:25:33 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 'Credits' ,
'type' => 'string' ,
'description' => 'Set the display name of your currency :)' ,
2021-08-02 17:25:33 +00:00
]);
2021-09-15 06:37:43 +00:00
//credits display name
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:SERVER_CREATE_CHARGE_FIRST_HOUR' ,
2021-09-15 06:37:43 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 'true' ,
'type' => 'boolean' ,
'description' => 'Charges the first hour worth of credits upon creating a server.' ,
2021-09-15 06:37:43 +00:00
]);
2021-11-05 06:43:57 +00:00
//sales tax
2022-01-05 07:57:41 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::PAYMENTS:SALES_TAX' ,
2021-11-05 06:43:57 +00:00
], [
'value' => '0' ,
2023-01-05 17:01:42 +00:00
'type' => 'integer' ,
'description' => 'The %-value of tax that will be added to the product price on checkout' ,
2021-11-05 06:43:57 +00:00
]);
2022-01-15 16:52:19 +00:00
//Invoices enabled
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::INVOICE:ENABLED' ,
2022-01-15 16:52:19 +00:00
], [
'value' => 'false' ,
2023-01-05 17:01:42 +00:00
'type' => 'boolean' ,
'description' => 'Enables or disables the invoice feature for payments' ,
2022-01-15 16:52:19 +00:00
]);
2022-01-05 09:32:17 +00:00
//Invoice company name
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::INVOICE:COMPANY_NAME' ,
2022-01-05 09:32:17 +00:00
], [
'value' => '' ,
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The name of the Company on the Invoices' ,
2022-01-05 09:32:17 +00:00
]);
//Invoice company address
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::INVOICE:COMPANY_ADDRESS' ,
2022-01-05 09:32:17 +00:00
], [
'value' => '' ,
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The address of the Company on the Invoices' ,
2022-01-05 09:32:17 +00:00
]);
//Invoice company phone
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::INVOICE:COMPANY_PHONE' ,
2022-01-05 09:32:17 +00:00
], [
'value' => '' ,
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The phone number of the Company on the Invoices' ,
2022-01-05 09:32:17 +00:00
]);
//Invoice company mail
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::INVOICE:COMPANY_MAIL' ,
2022-01-05 09:32:17 +00:00
], [
'value' => '' ,
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The email address of the Company on the Invoices' ,
2022-01-05 09:32:17 +00:00
]);
//Invoice VAT
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::INVOICE:COMPANY_VAT' ,
2022-01-05 09:32:17 +00:00
], [
'value' => '' ,
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The VAT-Number of the Company on the Invoices' ,
2022-01-05 09:32:17 +00:00
]);
//Invoice Website
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::INVOICE:COMPANY_WEBSITE' ,
2022-01-05 09:32:17 +00:00
], [
'value' => '' ,
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The Website of the Company on the Invoices' ,
2022-01-05 09:32:17 +00:00
]);
//Invoice Website
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::INVOICE:PREFIX' ,
2022-01-05 09:32:17 +00:00
], [
'value' => 'INV' ,
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The invoice prefix' ,
2022-01-05 09:32:17 +00:00
]);
2022-01-05 12:30:05 +00:00
//Locale
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::LOCALE:DEFAULT' ,
2022-01-05 12:30:05 +00:00
], [
'value' => 'en' ,
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The default Language the dashboard will be shown in' ,
2022-01-05 12:30:05 +00:00
]);
//Dynamic locale
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::LOCALE:DYNAMIC' ,
2022-01-05 12:30:05 +00:00
], [
'value' => 'false' ,
2023-01-05 17:01:42 +00:00
'type' => 'boolean' ,
'description' => 'If this is true, the Language will change to the Clients browserlanguage or default.' ,
2022-01-05 12:30:05 +00:00
]);
//User can change Locale
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::LOCALE:CLIENTS_CAN_CHANGE' ,
2022-01-05 12:30:05 +00:00
], [
'value' => 'false' ,
2023-01-05 17:01:42 +00:00
'type' => 'boolean' ,
'description' => 'If this is true, the clients will be able to change their Locale.' ,
2022-01-05 12:30:05 +00:00
]);
//Locale
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::LOCALE:AVAILABLE' ,
2022-01-05 12:30:05 +00:00
], [
2022-01-10 19:46:36 +00:00
'value' => '' ,
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The available languages' ,
2022-01-05 12:30:05 +00:00
]);
//Locale
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::LOCALE:DATATABLES' ,
2022-01-05 12:30:05 +00:00
], [
'value' => 'en-gb' ,
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The Language of the Datatables. Grab the Language-Codes from here https://datatables.net/plug-ins/i18n/' ,
2022-01-05 12:30:05 +00:00
]);
2022-01-07 08:54:01 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::PAYMENTS:PAYPAL:SECRET' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'PAYPAL_SECRET' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Your PayPal Secret-Key ( https://developer.paypal.com/docs/integration/direct/rest/)' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::PAYMENTS:PAYPAL:CLIENT_ID' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'PAYPAL_CLIENT_ID' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Your PayPal Client_ID' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::PAYMENTS:PAYPAL:SANDBOX_SECRET' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'PAYPAL_SANDBOX_SECRET' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Your PayPal SANDBOX Secret-Key used for testing ' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::PAYMENTS:PAYPAL:SANDBOX_CLIENT_ID' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'PAYPAL_SANDBOX_CLIENT_ID' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Your PayPal SANDBOX Client-ID used for testing ' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::PAYMENTS:STRIPE:SECRET' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'STRIPE_SECRET' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Your Stripe Secret-Key ( https://dashboard.stripe.com/account/apikeys )' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::PAYMENTS:STRIPE:ENDPOINT_SECRET' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'STRIPE_ENDPOINT_SECRET' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Your Stripe endpoint secret-key' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::PAYMENTS:STRIPE:TEST_SECRET' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'STRIPE_TEST_SECRET' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Your Stripe test secret-key' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::PAYMENTS:STRIPE:ENDPOINT_TEST_SECRET' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'STRIPE_ENDPOINT_TEST_SECRET' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Your Stripe endpoint test secret-key' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::PAYMENTS:STRIPE:METHODS' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-29 03:21:48 +00:00
'value' => env ( 'STRIPE_METHODS' , 'card,sepa_debit' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Comma seperated list of payment methods that are enabled (https://stripe.com/docs/payments/payment-methods/integration-options)' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::DISCORD:CLIENT_ID' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'DISCORD_CLIENT_ID' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Discord API Credentials - https://discordapp.com/developers/applications/' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::DISCORD:CLIENT_SECRET' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'DISCORD_CLIENT_SECRET' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Discord API Credentials - https://discordapp.com/developers/applications/' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::DISCORD:BOT_TOKEN' ,
2022-01-07 08:54:01 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => env ( 'DISCORD_BOT_TOKEN' , '' ),
'type' => 'string' ,
'description' => 'Discord API Credentials - https://discordapp.com/developers/applications/' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::DISCORD:GUILD_ID' ,
2022-01-07 08:54:01 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => env ( 'DISCORD_GUILD_ID' , '' ),
'type' => 'string' ,
'description' => 'Discord API Credentials - https://discordapp.com/developers/applications/' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::DISCORD:ROLE_ID' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'DISCORD_ROLE_ID' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Discord role that will be assigned to users when they register' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::DISCORD:INVITE_URL' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'DISCORD_INVITE_URL' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The invite URL to your Discord Server' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::SYSTEM:PTERODACTYL:TOKEN' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'PTERODACTYL_TOKEN' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Admin API Token from Pterodactyl Panel - necessary for the Panel to work. The Key needs all read&write permissions!' ,
2022-01-07 08:54:01 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::SYSTEM:PTERODACTYL:URL' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'PTERODACTYL_URL' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The URL to your Pterodactyl Panel. Must not end with a / ' ,
2022-01-07 08:54:01 +00:00
]);
2022-08-19 17:18:44 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::SYSTEM:PTERODACTYL:PER_PAGE_LIMIT' ,
2022-08-19 17:18:44 +00:00
], [
'value' => 200 ,
2023-01-05 17:01:42 +00:00
'type' => 'integer' ,
'description' => 'The Pterodactyl API perPage limit. It is necessary to set it higher than your server count.' ,
2022-08-19 17:18:44 +00:00
]);
2022-01-07 08:54:01 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::MISC:PHPMYADMIN:URL' ,
2022-01-07 08:54:01 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'PHPMYADMIN_URL' , '' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'The URL to your PHPMYADMIN Panel. Must not end with a /, remove to remove database button' ,
2022-01-07 08:54:01 +00:00
]);
2022-01-07 11:29:21 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::RECAPTCHA:SITE_KEY' ,
2022-01-07 11:29:21 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'RECAPTCHA_SITE_KEY' , '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Google Recaptcha API Credentials - https://www.google.com/recaptcha/admin - reCaptcha V2 (not v3)' ,
2022-01-07 11:29:21 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::RECAPTCHA:SECRET_KEY' ,
2022-01-07 11:29:21 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'RECAPTCHA_SECRET_KEY' , '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Google Recaptcha API Credentials - https://www.google.com/recaptcha/admin - reCaptcha V2 (not v3)' ,
2022-01-07 11:29:21 +00:00
]);
2022-01-14 20:17:36 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::RECAPTCHA:ENABLED' ,
2022-01-14 20:17:36 +00:00
], [
'value' => 'true' ,
2023-01-05 17:01:42 +00:00
'type' => 'boolean' ,
'description' => 'Enables or disables the ReCaptcha feature on the registration/login page' ,
2022-01-21 16:20:23 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::MAIL:MAILER' ,
2022-01-21 16:20:23 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'MAIL_MAILER' , 'smtp' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Selected Mailer (smtp, mailgun, sendgrid, mailtrap)' ,
2022-01-21 16:20:23 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::MAIL:HOST' ,
2022-01-21 16:20:23 +00:00
], [
2022-01-26 10:38:56 +00:00
'value' => env ( 'MAIL_HOST' , 'localhost' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
2023-01-12 09:25:28 +00:00
'description' => 'Mailer Host Address' ,
2022-01-21 16:20:23 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::MAIL:PORT' ,
2022-01-21 16:20:23 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => env ( 'MAIL_PORT' , '25' ),
'type' => 'string' ,
'description' => 'Mailer Server Port' ,
2022-01-21 16:20:23 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::MAIL:USERNAME' ,
2022-01-21 16:20:23 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => env ( 'MAIL_USERNAME' , '' ),
'type' => 'string' ,
'description' => 'Mailer Username' ,
2022-01-21 16:20:23 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::MAIL:PASSWORD' ,
2022-01-21 16:20:23 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => env ( 'MAIL_PASSWORD' , '' ),
'type' => 'string' ,
'description' => 'Mailer Password' ,
2022-01-21 16:20:23 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::MAIL:ENCRYPTION' ,
2022-01-21 16:20:23 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => env ( 'MAIL_ENCRYPTION' , 'tls' ),
'type' => 'string' ,
'description' => 'Mailer Encryption (tls, ssl)' ,
2022-01-21 16:20:23 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::MAIL:FROM_ADDRESS' ,
2022-01-21 16:20:23 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => env ( 'MAIL_FROM_ADDRESS' , '' ),
'type' => 'string' ,
'description' => 'Mailer From Address' ,
2022-01-21 16:20:23 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::MAIL:FROM_NAME' ,
2022-01-21 16:20:23 +00:00
], [
2022-02-02 10:58:16 +00:00
'value' => env ( 'APP_NAME' , 'Controlpanel' ),
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Mailer From Name' ,
2022-01-14 20:17:36 +00:00
]);
2022-06-02 14:11:24 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::REFERRAL::ENABLED' ,
2022-06-02 14:11:24 +00:00
], [
2023-01-19 15:07:23 +00:00
'value' => 'false' ,
2023-01-05 17:01:42 +00:00
'type' => 'string' ,
'description' => 'Enable or disable the referral system' ,
2022-06-02 14:11:24 +00:00
]);
2022-10-18 21:33:33 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::REFERRAL::ALWAYS_GIVE_COMMISSION' ,
2022-10-18 21:33:33 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 'false' ,
'type' => 'string' ,
'description' => 'Whether referrals get percentage commission only on first purchase or on every purchase' ,
2022-10-18 21:33:33 +00:00
]);
2022-06-02 14:11:24 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::REFERRAL::REWARD' ,
2022-06-02 14:11:24 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 100 ,
'type' => 'integer' ,
'description' => 'Credit reward a user should receive when a user registers with his referral code' ,
2022-06-02 14:11:24 +00:00
]);
2022-06-02 16:41:08 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::REFERRAL::ALLOWED' ,
2022-06-02 16:41:08 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 'client' ,
'type' => 'string' ,
'description' => 'Who should be allowed to to use the referral code. all/client' ,
2022-06-02 16:41:08 +00:00
]);
2022-06-07 08:05:19 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::REFERRAL:MODE' ,
2022-06-07 08:05:19 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 'sign-up' ,
'type' => 'string' ,
'description' => 'Whether referrals get Credits on User-Registration or if a User buys credits' ,
2022-06-07 08:05:19 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::REFERRAL:PERCENTAGE' ,
2022-06-07 08:05:19 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 100 ,
'type' => 'integer' ,
'description' => 'The Percentage Value a referred user gets' ,
2022-06-07 08:05:19 +00:00
]);
2022-08-12 10:50:29 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::SYSTEM:PTERODACTYL:ADMIN_USER_TOKEN' ,
2022-08-12 10:50:29 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => '' ,
'type' => 'string' ,
'description' => 'The Client API Key of an Pterodactyl Admin Account' ,
2022-08-12 10:50:29 +00:00
]);
2022-08-16 20:37:40 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::SYSTEM:ENABLE_UPGRADE' ,
2022-08-16 20:37:40 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 'false' ,
'type' => 'boolean' ,
'description' => 'Enables the updgrade/downgrade feature for servers' ,
2022-08-16 20:37:40 +00:00
]);
2022-11-03 22:15:06 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::SYSTEM:CREATION_OF_NEW_SERVERS' ,
2022-11-03 22:15:06 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 'true' ,
'type' => 'boolean' ,
'description' => 'Enable/disable the creation of new servers' ,
2022-11-03 22:15:06 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::SYSTEM:CREATION_OF_NEW_USERS' ,
2022-11-03 22:15:06 +00:00
], [
2023-01-05 17:01:42 +00:00
'value' => 'false' ,
'type' => 'boolean' ,
'description' => 'Enable/disable the creation of new users' ,
2022-11-03 22:15:06 +00:00
]);
2022-12-22 21:28:52 +00:00
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::SYSTEM:SHOW_IMPRINT' ,
2022-12-22 21:28:52 +00:00
], [
2023-01-05 23:13:50 +00:00
2023-01-05 23:01:23 +00:00
'value' => " false " ,
2022-12-22 21:28:52 +00:00
'type' => 'boolean' ,
'description' => 'Enable/disable imprint in footer'
2023-01-05 23:13:50 +00:00
2022-12-22 21:28:52 +00:00
]);
Settings :: firstOrCreate ([
2023-01-05 17:01:42 +00:00
'key' => 'SETTINGS::SYSTEM:SHOW_PRIVACY' ,
2022-12-22 21:28:52 +00:00
], [
2023-01-05 23:13:50 +00:00
2023-01-05 23:01:23 +00:00
'value' => " false " ,
2022-12-22 21:28:52 +00:00
'type' => 'boolean' ,
'description' => 'Enable/disable privacy policy in footer'
2023-01-05 23:13:50 +00:00
2022-12-22 21:28:52 +00:00
]);
2023-01-05 23:01:23 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:SHOW_TOS' ,
], [
'value' => 'false' ,
2023-01-05 17:01:42 +00:00
'type' => 'boolean' ,
2023-01-05 23:01:23 +00:00
'description' => 'Enable/disable Terms of Service in footer' ,
2022-12-22 21:28:52 +00:00
]);
2023-01-10 18:45:19 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:ALERT_ENABLED' ,
], [
'value' => 'false' ,
'type' => 'boolean' ,
'description' => 'Enable/disable Alerts on Homepage' ,
]);
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:ALERT_TYPE' ,
], [
'value' => 'dark' ,
'type' => 'text' ,
'description' => 'Changes the Color of the Alert' ,
]);
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:ALERT_MESSAGE' ,
], [
'value' => '' ,
'type' => 'text' ,
'description' => 'Changes the Content the Alert' ,
]);
2023-01-11 10:08:22 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:THEME' ,
], [
'value' => 'default' ,
'type' => 'text' ,
'description' => 'Current active theme' ,
]);
2023-01-12 14:43:24 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:USEFULLINKS_ENABLED' ,
], [
'value' => 'true' ,
'type' => 'boolean' ,
'description' => 'Enable/disable Useful Links on Homepage' ,
]);
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:MOTD_ENABLED' ,
], [
2023-01-19 15:07:23 +00:00
'value' => 'false' ,
2023-01-12 14:43:24 +00:00
'type' => 'boolean' ,
'description' => 'Enable/disable MOTD on Homepage' ,
]);
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:MOTD_MESSAGE' ,
], [
'value' => ' < h1 style = " text-align: center; " >< img style = " display: block; margin-left: auto; margin-right: auto; " src = " https://controlpanel.gg/img/controlpanel.png " alt = " " width = " 200 " height = " 200 " >< span style = " font-size: 36pt; " > Controlpanel . gg </ span ></ h1 >
< p >< span style = " font-size: 18pt; " > Thank you for using our Software </ span ></ p >
< p >< span style = " font-size: 18pt; " > If you have any questions , make sure to join our < a href = " https://discord.com/invite/4Y6HjD2uyU " target = " _blank " rel = " noopener " > Discord </ a ></ span ></ p >
< p >< span style = " font-size: 10pt; " > ( you can change this message in the < a href = " admin/settings#system " > Settings </ a > ) </ span ></ p > ' ,
'type' => 'text' ,
'description' => 'MOTD Message' ,
]);
2023-01-13 17:41:32 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:SEO_TITLE' ,
], [
'value' => 'Controlpanel.gg' ,
'type' => 'text' ,
'description' => 'The SEO Title' ,
]);
Settings :: firstOrCreate ([
'key' => 'SETTINGS::SYSTEM:SEO_DESCRIPTION' ,
], [
'value' => 'Billing software for Pterodactyl Dashboard!' ,
'type' => 'text' ,
'description' => 'SEO Description' ,
]);
2023-01-13 18:32:32 +00:00
Settings :: firstOrCreate ([
'key' => 'SETTINGS::TICKET:NOTIFY' ,
], [
'value' => 'all' ,
'type' => 'text' ,
'description' => 'Who will get a Email Notifcation on new Tickets' ,
]);
2021-06-05 09:26:32 +00:00
}
}