hi i have project on laravel 5.6
and this is my role for validation
'voucher_debt' => 'required|array|min:1',
'voucher_debt.*' => 'nullable|numeric|min:0.001',
'voucher_credit' => 'required|array|min:1',
'voucher_credit.*' => 'nullable|numeric|min:0.001',
my problem thats i need it to check if the
array_sum($voucher_credit) - array_sum($voucher_debt) == 0
i tried many thing nothing works out with me
is that possible on laravel