Dennis пре 2 година
родитељ
комит
28e405a55d
2 измењених фајлова са 2 додато и 3 уклоњено
  1. 1 1
      app/Settings/GeneralSettings.php
  2. 1 2
      app/Settings/ReferralSettings.php

+ 1 - 1
app/Settings/GeneralSettings.php

@@ -114,7 +114,7 @@ class GeneralSettings extends Settings
                 'description' => 'The type of alert to display.'
             ],
             'alert_message' => [
-                'type' => 'string',
+                'type' => 'textarea',
                 'label' => 'Alert Message',
                 'description' => 'The message to display in the alert.'
             ],

+ 1 - 2
app/Settings/ReferralSettings.php

@@ -24,11 +24,10 @@ class ReferralSettings extends Settings
     public static function getValidations()
     {
         return [
-            'allowed' => 'required|in:Everyone,Clients',
             'always_give_commission' => 'nullable|boolean',
             'enabled' => 'nullable|boolean',
             'reward' => 'nullable|numeric',
-            'mode' => 'required|in:Commission,Sign-Up,Both',
+            'mode' => 'required|in:comission,sign-up,both',
             'percentage' => 'nullable|numeric',
         ];
     }