title: How to add two columns value and perform where condition in laravel eloquent
body: <p>This is my table:</p>
  
  <pre><code>id       remaining_amount     additional_amount
  1             200                   0
  2             100                -100
  3             300                 100
  4             200                 -50
  </code></pre>
  
  <p>I'm trying to get the rows which have a sum of <em>remaining_amount</em> + <em>additional_amount</em> > 0 .</p>
  
  <pre><code>$result = $this-&gt;model-&gt;where('remaining_amount' + 'total' &gt; 0)-&gt;get();
  </code></pre>
  
  <p>it didn't work. Then I tried like this:</p>
  
  <pre><code>$result = DB::table('cash')-&gt;select(DB::raw('remaining_amount+additional_amount AS total'))
                  -&gt;where('total','&gt;',0)
                  -&gt;get();
  </code></pre>
  
  <p>It doesn't work either.</p>
  
  <p>Please show me the way to solve this.</p>