Comments (5)
Update on this. I was using the phone:AUTO
setting. I changed that to phone:US
and that fixed the issue.
from laravel-phone.
Hi
I'm glad specifying the country manually fixed your problem for now.
Just as a follow-up: did you enter your personal phone number in international format when using phone:AUTO
?
Note this paragraph in the readme:
The validator will try to extract the country from the number itself and then check if the number is valid for that country. Note that this will only work when phone numbers are entered in international format (prefixed with a + sign, e.g. +32 ....). Leading double zeros will NOT be parsed correctly as this isn't an established consistency.
from laravel-phone.
I had not tried that before, thank you for pointing this out.
I gave that a shot and it worked. Anyway that could default to the US code?
Either way, great piece of code here. Will definitely be using it again in the future.
Lucas R. Hibbard | Ace Ticket
Senior Web Developer
656 Beacon St. 2nd Floor | Boston, MA 02215
Phone: 617.586.1414
On Dec 18, 2015, at 8:48 AM, Propaganistas [email protected] wrote:
Hi
I'm glad specifying the country manually fixed your problem for now.
Just as a follow-up: did you enter your personal phone number in international format when using phone:AUTO?
Note this paragraph in the readme:
The validator will try to extract the country from the number itself and then check if the number is valid for that country. Note that this will only work when phone numbers are entered in international format (prefixed with a + sign, e.g. +32 ....). Leading double zeros will NOT be parsed correctly as this isn't an established consistency.
—
Reply to this email directly or view it on GitHub #20 (comment).
from laravel-phone.
Hardcoding a default is not viable however implementing a parameter to use as a default when in AUTO mode might be a good idea. I'll look into this when I have some time.
from laravel-phone.
I've rolled out a new release for this. Please update to 2.5.0
from laravel-phone.
Related Issues (20)
- Fails to validate phone numbers when the country code is lowercase HOT 2
- Fails to validate international swedish numbers HOT 6
- Dialing Codes HOT 2
- Your demo site seems broken HOT 1
- InvalidArgumentException : Missing country specification for phone attribute cast HOT 8
- How to only accept international format (E.164) for a specific country? HOT 2
- GH valid phone number starting with 025xxxxxxx fails validation, however 0256 works
- Validator fails on empty phone field, when required_if is present HOT 3
- Validation for Lebanese mobile numbers starting with 78 fails HOT 1
- When I used it, I found that the getCountryCode method was missing HOT 1
- Documented formatE164 method does not return expected result HOT 1
- Validation Message HOT 1
- how do i use AUTO with the class interface? HOT 1
- Failed to open stream: No such file or directory in /propaganistas/laravel-phone/src/Concerns/PhoneNumberFormat.php HOT 3
- "mobile" parameter no longer working in 5.1.0 when one of the data fields is "mobile" HOT 2
- Support for Laravel 11 HOT 1
- Laravel-Intl is unavailable HOT 2
- Simple phone validation fails
- Laravel tripping the + HOT 4
- Nullable rule doesn't work at request validation. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-phone.