title: Laravel whereDate() not working when trying to fetch records between two dates
body: <p>I use the following query to get the records between two dates. I Entered 2017-05-01 in From Date, 2017-05-30 in To Date. I Run the Query and get Empty Results. but, This DB table have Many Records for this Month. I Remove Dates Query after Run It, It's Get Many Records. What's My Problem.. </p>
  
  <pre><code>    $getdatewiseresults = Companyledger::whereDate('transaction_date', '&lt;=' , $data['frmdate_submit'])
      -&gt;whereDate('transaction_date', '&gt;=', $data['todate_submit'])
      -&gt;WhereIn('frm_ledger', $ledgerlist)
      -&gt;where('company_id' ,$companyids)
      -&gt;get();
  </code></pre>