tiny validation fixes
This commit is contained in:
parent
6a431edd8b
commit
c0f9436ffd
2 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ class ProductController extends Controller
|
|||
"memory" => "required|numeric|max:1000000|min:5",
|
||||
"cpu" => "required|numeric|max:1000000|min:0",
|
||||
"swap" => "required|numeric|max:1000000|min:0",
|
||||
"description" => "required",
|
||||
"description" => "required|string|max:191",
|
||||
"disk" => "required|numeric|max:1000000|min:5",
|
||||
"io" => "required|numeric|max:1000000|min:0",
|
||||
"databases" => "required|numeric|max:1000000|min:0",
|
||||
|
@ -105,7 +105,7 @@ class ProductController extends Controller
|
|||
"memory" => "required|numeric|max:1000000|min:5",
|
||||
"cpu" => "required|numeric|max:1000000|min:0",
|
||||
"swap" => "required|numeric|max:1000000|min:0",
|
||||
"description" => "required",
|
||||
"description" => "required|string|max:191",
|
||||
"disk" => "required|numeric|max:1000000|min:5",
|
||||
"io" => "required|numeric|max:1000000|min:0",
|
||||
"databases" => "required|numeric|max:1000000|min:0",
|
||||
|
|
|
@ -78,7 +78,7 @@ class UserController extends Controller
|
|||
"name" => "required|string|min:4|max:30",
|
||||
"pterodactyl_id" => "required|numeric|unique:users,pterodactyl_id,{$user->id}",
|
||||
"email" => "required|string|email",
|
||||
"credits" => "required|numeric|min:0|max:1000000",
|
||||
"credits" => "required|numeric|min:0|max:999999",
|
||||
"server_limit" => "required|numeric|min:0|max:1000000",
|
||||
"role" => Rule::in(['admin', 'mod', 'client', 'member']),
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue