mirror of
https://github.com/v2board/v2board.git
synced 2025-04-14 05:32:35 +08:00
update
This commit is contained in:
parent
0749372f34
commit
45b03b4fba
@ -6,17 +6,7 @@ use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class ConfigSave extends FormRequest
|
||||
{
|
||||
public static function filter() {
|
||||
return array_keys($this->rules());
|
||||
}
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
CONST RULES = [
|
||||
'invite_force' => 'in:0,1',
|
||||
'invite_commission' => 'integer',
|
||||
'invite_gen_limit' => 'integer',
|
||||
@ -45,6 +35,18 @@ class ConfigSave extends FormRequest
|
||||
// tutorial
|
||||
'apple_id' => 'email'
|
||||
];
|
||||
|
||||
public static function filter() {
|
||||
return array_keys(self::RULES);
|
||||
}
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return self::RULES;
|
||||
}
|
||||
|
||||
public function messages()
|
||||
|
Loading…
x
Reference in New Issue
Block a user