add server rules

This commit is contained in:
Tokumeikoi 2020-02-10 18:54:17 +08:00
parent 5bd524fbf1
commit 26e63cbe1c

View File

@ -18,7 +18,8 @@ class ServerSave extends FormRequest
'tls' => 'required',
'tags' => 'array',
'rate' => 'required|numeric',
'network' => 'required|in:tcp,kcp,ws,http,domainsocket,quic'
'network' => 'required|in:tcp,kcp,ws,http,domainsocket,quic',
'settings' => ''
];
/**
* Get the validation rules that apply to the request.