Browse Source

add server rules

Tokumeikoi 5 years ago
parent
commit
26e63cbe1c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Http/Requests/Admin/ServerSave.php

+ 2 - 1
app/Http/Requests/Admin/ServerSave.php

@@ -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.