title: Laravel Query Buider Group By Not Getting All The Records
body: <p>I am trying to get the data using <code>groupBy</code> on <code>type</code> field from my <code>transaction</code> table. I am using this query</p>
  
  <pre><code>DB::table($this-&gt;table)
      -&gt;select()
      -&gt;whereRaw($where['rawQuery'], isset($where['bindParams']) ? $where['bindParams'] : array())
      -&gt;groupBy('type')
      -&gt;get();
  </code></pre>
  
  <p>But it is not giving the <code>complete records</code>. There are more than 10 records in my table. But it is giving me only two. One for type=1 and another for type=2. It is selecting only on record from each type. I am expecting that i will get all the <code>transactions</code> based on <code>condition</code> grouped in <code>two result set</code>. Anyone know why it is happening?</p>