tiny validation fixes

This commit is contained in:
AVMG20 2021-07-05 21:06:13 +02:00
parent 6a431edd8b
commit c0f9436ffd
2 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -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']),
]);