I have a form that contains a field for user to enter amount value of certain payment. This field is input of type number.
The validation rule in Laravel for this input is: 'amount' => 'required|numeric'
When I enter the amount in English as: 1500 => The validation is passed and every thing is OK.
But when I enter the amount in Arabic as: ١٥٠٠ => The validation is falls with error message: "validation.numeric".
Should I validate this field manually or there is another solution to this problem?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire