I'm having a frustrating experience with Laravel. I'm trying to get the Shippo code to work with my UserAddress and Cart Models for product shipping costs. When I do a regular die dump, I can see the details of my cart and the current user address from the UserAddress model. The problem is when I try to assign values like $address->name, I get the error Property[name] does not exist on this collection instance. I don't understand.
The property name has a value in the UserAddress model and table, and the variable $address = UserAddress::where('member_id,'id'). The member_id attribute is assigned to the authenticated user's id. I don't understand the Property[name] error.