vendredi 28 avril 2017

Validate Arabic Numbers in Laravel 5

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?

error screenshot



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2oRpDnb
via IFTTT

Aucun commentaire:

Enregistrer un commentaire