📅  最后修改于: 2022-03-11 14:53:56.745000             🧑  作者: Mango
$validator = Validator::make($request->all(),[
'program' => 'required',
'music_instrument' => 'required_if:program.*,in:Music'
]);