TIPOFF / locations

Laravel Package for locations in markets
MIT License
0 stars 1 forks source link

Relationships to Phone Model #74

Open drewroberts opened 3 years ago

drewroberts commented 3 years ago

With the new Phone (https://github.com/tipoff/addresses/issues/58) model, all strings of phone numbers in this package should be replaced with a relationship to that model.

drewroberts commented 3 years ago

With the creation of the Phone model (https://github.com/tipoff/addresses/issues/58), the string field for phone in this package should be replaced with a findOrCreate() relationship with that model. We can use the app('phone') & nova('phone') helpers from tipoff/support.

In addition to changing the database migrations, we should also update the model, factory, and nova resource. Later, we will have a custom nova field (https://github.com/tipoff/addresses/issues/108) for our usage of Phone.