GithubHelp home page GithubHelp logo

Validation Error about nova-phone-number HOT 10 CLOSED

chinleung avatar chinleung commented on June 29, 2024
Validation Error

from nova-phone-number.

Comments (10)

dniccum avatar dniccum commented on June 29, 2024

from nova-phone-number.

chinleung avatar chinleung commented on June 29, 2024

I've tried many numbers that are generated by Faker. And I've also tried some manual entry. For example: 5141231234 which formatted as (514) 123-1234 automatically.

from nova-phone-number.

nickpoulos avatar nickpoulos commented on June 29, 2024

I also am having the same issue. I followed the docs using ->disableValidation() but also getting the validation.phone error.

Just using very simple config with disableValidation does not work.

PhoneNumber::make('Phone')->disableValidation()

Any movement on this ticket?

Thanks for your work.

from nova-phone-number.

mvnobrega avatar mvnobrega commented on June 29, 2024

I also am having the same issue but I not use disableValidation. This is my config:

        PhoneNumber::make('Telefone', 'phone')
            ->sortable()
            ->format('(##) #####-####')
            ->placeholder('(00) 00000-0000')
            ->linkOnDetail()
            ->linkOnIndex(),

from nova-phone-number.

dniccum avatar dniccum commented on June 29, 2024

I am currently working on a fix. I should have something by this evening. Thanks for your patience.

from nova-phone-number.

dniccum avatar dniccum commented on June 29, 2024

@nickpoulos @chinleung Please try the latest release to see if it resolves your issue. You may have to clear your composer cache to get the latest version.

from nova-phone-number.

chinleung avatar chinleung commented on June 29, 2024

Hi @dniccum,

I've tried again and it's still not working for me. I am still getting the validation.error message.

from nova-phone-number.

dniccum avatar dniccum commented on June 29, 2024

@chinleung I just attempted to replicate what you are seeing and I was unable to successfully replicate it. Are you using i18n translations, or are you attempting to validate a phone number that is other than a standard US phone number?

from nova-phone-number.

nickpoulos avatar nickpoulos commented on June 29, 2024

@dniccum that seems to have corrected the issue for me. I still have to use disableValidation() as the docs state we might depending on the format. I also had to run composer clearcache before the update. 👍

Thanks for your work, much appreciated.

from nova-phone-number.

dniccum avatar dniccum commented on June 29, 2024

Thanks @nickpoulos , I will go ahead and close this issue then. Let me know if you find any other issues.

from nova-phone-number.

Related Issues (17)

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.