opt 1.2.3

This commit is contained in:
Tokumeikoi
2020-03-10 13:11:31 +08:00
parent 57fd282024
commit 5b317478c6
4 changed files with 89 additions and 61 deletions

View File

@ -7,7 +7,6 @@ use Illuminate\Foundation\Http\FormRequest;
class ServerSave extends FormRequest
{
CONST RULES = [
'rules' => '',
'show' => '',
'name' => 'required',
'group_id' => 'required|array',
@ -19,7 +18,8 @@ class ServerSave extends FormRequest
'tags' => 'nullable|array',
'rate' => 'required|numeric',
'network' => 'required|in:tcp,kcp,ws,http,domainsocket,quic',
'settings' => ''
'networkSettings' => '',
'ruleSettings' => ''
];
/**
* Get the validation rules that apply to the request.