Fix some settings (#827)

This commit is contained in:
Dennis 2023-05-08 14:21:26 +02:00 committed by GitHub
commit 28e405a55d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -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.'
],

View file

@ -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',
];
}