feat: ✨ Added validation to Settings
This commit is contained in:
parent
e9fec445ff
commit
3b1b6e9b7e
1 changed files with 12 additions and 1 deletions
|
@ -45,4 +45,15 @@ class GeneralSettings extends Settings
|
|||
'recaptcha_secret_key'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
public static function validation()
|
||||
{
|
||||
// create validation rules that can be used in the controller
|
||||
return [
|
||||
'main_site' => 'required|url',
|
||||
'credits_display_name' => 'required|string',
|
||||
'initial_user_credits' => 'required|numeric',
|
||||
'initial_server_limit' => 'required|numeric',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue