title: How to get products relational array in loop laravel
body: <p>Hello I am having table called <code>orders</code>, <code>order_details</code>, <code>product</code> where <code>order</code> contains order data, <code>order_details</code> contains product key as foreign key for order items and <code>product</code> table has product information.</p>
  
  <p>This is query I am using:</p>
  
  <pre><code>$OrderDetails = OrderDetails::where('order_id',$order_id)-&gt;with('Product')-&gt;get();
  </code></pre>
  
  <p>Following is <code>order_details</code> table,</p>
  
  <p><a href="https://i.stack.imgur.com/g1bx7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g1bx7.png" alt="enter image description here"></a></p>
  
  <p>and I am getting output like this:</p>
  
  <p><a href="https://i.stack.imgur.com/lzmCc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lzmCc.png" alt="enter image description here"></a></p>
  
  <p>How to get only product details through loops in laavel blade?</p>