How to validate an array object based on another Field. I have an array object details and simple required validation is working fine with:
'details.*.diff_qty' => 'required'
But i want to validate it only if item Id is greater than 0 or not equal to zero with .
'details.*.diff_qty' => 'required_if:details.*.item_id,!=,0'
But not working. Please help. Thanks in Advance.