📜  如何在laravel中验证arraye中对象的值 - PHP代码示例

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

代码示例1
$request->validate([
            'data.*.recommend_question_id'=>'required',
            'data.*.recommend'=>'required',
            'data.*.date'=>'required'
        ]);