瀏覽代碼

google recaptcha in settings

1Day 3 年之前
父節點
當前提交
7dda50caff
共有 1 個文件被更改,包括 16 次插入0 次删除
  1. 16 0
      database/seeders/Seeds/SettingsSeeder.php

+ 16 - 0
database/seeders/Seeds/SettingsSeeder.php

@@ -378,5 +378,21 @@ class SettingsSeeder extends Seeder
             'type'  => 'string',
             'description'  => 'The URL to your PHPMYADMIN Panel. Must not end with a /, remove to remove database button'
         ]);
+
+        Settings::firstOrCreate([
+            'key'   => 'SETTINGS::SYSTEM:RECAPTCHA_SITE_KEY',
+        ], [
+            'value' => '',
+            'type'  => 'string',
+            'description'  => 'Google Recaptcha API Credentials - https://www.google.com/recaptcha/admin - reCaptcha V2 (not v3)'
+        ]);
+
+        Settings::firstOrCreate([
+            'key'   => 'SETTINGS::SYSTEM:RECAPTCHA_SECRET_KEY',
+        ], [
+            'value' => '',
+            'type'  => 'string',
+            'description'  => 'Google Recaptcha API Credentials - https://www.google.com/recaptcha/admin - reCaptcha V2 (not v3)'
+        ]);
     }
 }