$data = $request->validate([
"name" => "required|array|min:3",
"name.*" => "required|string",
]);
$validator = Validator::make($request->all(), [
"names" => "required|array|min:3",
"names.*" => "required|string|distinct|min:3",
]);
$validation->messages()->all()
'username' => ['required', 'min:3', 'max:255', Rule::unique('users', 'username')],