Magento, Laravel, Eloquent.
$product->brand->name }}</p> //... @endforeach Again, this looks fine. I have written code like this countless times in the past. However, there is a small issue here that might not be obvious. While we loaded all of our products into memory using one SQL query in our controller, the brands are