TIPOFF / locations

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

Email Address Relationship #82

Open drewroberts opened 3 years ago

drewroberts commented 3 years ago

With the creation of the new Email Addresses model (https://github.com/tipoff/authorization/issues/57), all string fields for email in this package should be replaced with a findOrCreate() relationship with that model. We can use the app('email_address') & nova('email_address') helpers added in release 1.8.3 of 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/authorization/issues/59) for our usage of Email Address.

drewroberts commented 3 years ago

On the Locations (#42) model, let's still call it contact_email just maybe add _id at the end.