Giter Site home page Giter Site logo

Comments (5)

lucasatace avatar lucasatace commented on May 22, 2024

Update on this. I was using the phone:AUTO setting. I changed that to phone:US and that fixed the issue.

from laravel-phone.

Propaganistas avatar Propaganistas commented on May 22, 2024

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.

lucasatace avatar lucasatace commented on May 22, 2024

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.

Propaganistas avatar Propaganistas commented on May 22, 2024

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.

Propaganistas avatar Propaganistas commented on May 22, 2024

I've rolled out a new release for this. Please update to 2.5.0

from laravel-phone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.