dniccum / nova-phone-number

A Laravel Nova field to format and validate phone numbers.
MIT License
71 stars 16 forks source link

Is there any solution for using dependsOn? #68

Closed nikolai-vysotskyi closed 2 months ago

nikolai-vysotskyi commented 4 months ago

Hey, What about dependsOn, as in other default fields?

I need something like this, but I'm not sure how I'm supposed to do this with your field and with no external wrappers

Is there any solution?

nikolai-vysotskyi commented 4 months ago

Okay... Now, in Nova 4 u need to replace the FormField mixin with DependentFormField and field with currentField in Vue Component Nothing complicated, and everything works great 🙃

I just made a clone of the repository, but here are the instructions: https://nova.laravel.com/docs/customization/fields.html#dependent-form-field

Please make an update to the repo with this one, important feature

dniccum commented 2 months ago

Fixed by #69