I have an array in php. i need to validate array such that each abc_id should be unique in array but not required to be unique in database table.
$validator = Validator::make($request->all(), [
'tests.*.*.abc_id' => 'should not be same in array'
]);
Thanks in Advance.