Any thoughts on loading a "Type" for this $user->phones->type so the output of User (which is working btw) would not only show the phone and the phones type id but the name of the type. An example is here https://www.dropbox.com/s/ie4hqfo9op71bhw/phone_types.png
So the Users hasMany Phones and Phones belongsTo PhoneTypes (Home, Work, Office)
Thanks
I was able to load this using the dot notation as deep as needed etc phone.phone_types
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community