Added primary address, email and phone selectors in create, edit blades. Modified logic in store/update methods to ensure there is one and only is_primary for a contact's address, email and phone. Added a variety of attributes to contact model. Modified show blade to append asterisk in front of a primary value. Added tests to ensure the selected primary field is auto-populated on edit method. Modified requests for the new primary field selector data.
Added primary address, email and phone selectors in create, edit blades. Modified logic in store/update methods to ensure there is one and only is_primary for a contact's address, email and phone. Added a variety of attributes to contact model. Modified show blade to append asterisk in front of a primary value. Added tests to ensure the selected primary field is auto-populated on edit method. Modified requests for the new primary field selector data.