TIPOFF / bookings

Laravel Package for Ecommerce Bookings
MIT License
1 stars 1 forks source link

Email Address Relationship #73

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.

Participant (#39) has an existing email field.