Hey guys I need to validate something on my laravel application and I don't know how.
So if the user introduces 1234.55 it should allow it, because it have only 5 numbers, but if the user introduces 12345678.55 must reject!
What I have until now.
return [
'max_debit' => 'required|numeric|min:0'
];
I tried to use digits_between
, but when I use this, the validation doesn't allow float numbers.
So the rule should match:
- Integer numbers
- Float numbers -> All greater or equal to 0
- Max digits:
9
- Accept:
1234.55
- Reject:
12345678.55