What should I use to get an attribute out of my foreign table in Laravel?
Posted By: Anonymous I am trying to access the price of a product. I am using a orderItem table which has a foreign ID that goes to the product table. I then want to access the price of a corresponding product. When I do so it comes up with this error: Property [price] does not …