-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Validation Error #5
Comments
Can you provide me with the phone number that you are trying to validate?
On Thu, Oct 11, 2018 at 9:33 AM Chin Leung ***@***.***> wrote:
I'm using the following in my Nova resource:
PhoneNumber::make('Phone')
->disableValidation()
->linkOnDetail()
->hideFromIndex(),
However, when I try to update my resource, I get a validation.phone error
even though I am using ->disableValidation().
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ACr5nyNVfYJvw_WCymkGRY0WfJLBK2jHks5uj1azgaJpZM4XXpXn>
.
--
Doug Niccum
Sent from my iPhone. Sorry if I have fat fingers.
|
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. |
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. |
I also am having the same issue but I not use disableValidation. This is my config:
|
I am currently working on a fix. I should have something by this evening. Thanks for your patience. |
@nickpoulos @chinleung Please try the latest release to see if it resolves your issue. You may have to clear your |
Hi @dniccum, I've tried again and it's still not working for me. I am still getting the validation.error message. |
@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? |
@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. |
Thanks @nickpoulos , I will go ahead and close this issue then. Let me know if you find any other issues. |
I'm using the following in my Nova resource:
However, when I try to update my resource, I get a
validation.phone
error even though I am using->disableValidation()
.The text was updated successfully, but these errors were encountered: