From 3822c123ba2a8ae4204b8103029164f0005e38f8 Mon Sep 17 00:00:00 2001 From: 1day2die Date: Mon, 8 May 2023 14:20:42 +0200 Subject: [PATCH] Fix some Settings --- app/Settings/GeneralSettings.php | 2 +- app/Settings/ReferralSettings.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Settings/GeneralSettings.php b/app/Settings/GeneralSettings.php index 06a4819e..5c4d1411 100644 --- a/app/Settings/GeneralSettings.php +++ b/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.' ], diff --git a/app/Settings/ReferralSettings.php b/app/Settings/ReferralSettings.php index 47d08646..28e1a9ed 100644 --- a/app/Settings/ReferralSettings.php +++ b/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', ]; }