📜  如何在 laravel 中使用 required_with 到数组元素 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:48.940000             🧑  作者: Mango

代码示例2
$validator = Validator::make($request->all(), [
    "names"    => "required|array|min:3",
    "names.*"  => "required|string|distinct|min:3",
]);