title: How do i calculate total amount for specific id in laravel?
body: <p><strong>I have two tables invoices and invoice_items. What I want is to sum amount for each invoice id and show in my view.</strong></p>
  
  <p><strong>Invoice Table</strong></p>
  
  <ul>
  <li>id</li>
  </ul>
  
  <p><strong>invoice_items table</strong></p>
  
  <ul>
  <li><p>id</p></li>
  <li><p>invoice_id</p></li>
  <li><p>amount</p></li>
  </ul>
  
  <p><strong>I want to sum amount column for specific invoice id. I am new to laravel so how do I do that with laravel eloquent.</strong></p>