Hi,
I have the following rules:
$rules = array(
'purchase_amount' => 'required|integer',
'payment_amount' => 'required|integer',
);
I need to add a rule that states that the value of 'payment_amount' will never be greater than the value of 'purchase_amount'. It is perfectly valid for them to be equal or that 'payment_amount' will be less than 'purchase_amount'.
How can I achieve that?
Thanks in advance
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community