-
-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to validate Indian phone numbers #81
Comments
If you expect to receive support you might want to include some example numbers and sample code. |
I'm using the latest version |
The number you supplied validates just fine using Additionally, you might want to use the built-in functionality to using the country field instead of directly inlining $this->validator($request->all())->sometimes('phone_no', 'required|phone:cc,mobile|unique:users', function ($input){
return $input->cc;
})->validate(); |
Bug found and fixed in 79b7901. New release created. Thanks for reporting. |
Unable to validate some Indian mobile numbers starting with 81,83,85 etc. Gives the error:
{ "message": "The given data was invalid.", "errors": { "phone_no": [ "The phone number field contains an invalid number." ] } }
//validator in RegisterController.php
//registration func
//numbers used
81/83/8590332334
same number starting with 82,84,90,70 are accepted
The text was updated successfully, but these errors were encountered: