Fix some settings (#827)
This commit is contained in:
commit
28e405a55d
|
@ -114,7 +114,7 @@ class GeneralSettings extends Settings
|
||||||
'description' => 'The type of alert to display.'
|
'description' => 'The type of alert to display.'
|
||||||
],
|
],
|
||||||
'alert_message' => [
|
'alert_message' => [
|
||||||
'type' => 'string',
|
'type' => 'textarea',
|
||||||
'label' => 'Alert Message',
|
'label' => 'Alert Message',
|
||||||
'description' => 'The message to display in the alert.'
|
'description' => 'The message to display in the alert.'
|
||||||
],
|
],
|
||||||
|
|
|
@ -24,11 +24,10 @@ class ReferralSettings extends Settings
|
||||||
public static function getValidations()
|
public static function getValidations()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'allowed' => 'required|in:Everyone,Clients',
|
|
||||||
'always_give_commission' => 'nullable|boolean',
|
'always_give_commission' => 'nullable|boolean',
|
||||||
'enabled' => 'nullable|boolean',
|
'enabled' => 'nullable|boolean',
|
||||||
'reward' => 'nullable|numeric',
|
'reward' => 'nullable|numeric',
|
||||||
'mode' => 'required|in:Commission,Sign-Up,Both',
|
'mode' => 'required|in:comission,sign-up,both',
|
||||||
'percentage' => 'nullable|numeric',
|
'percentage' => 'nullable|numeric',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue