title: Laravel find records between two dates
body: <p>i am doing below coding for find records between two dates in laravel 
  but its not giving today's created_at records</p>
  
  <pre class="lang-php prettyprint-override"><code>$start_date = date('Y-m-d', strtotime($request-&gt;get('start_date')));
  
  $end_date = date('Y-m-d', strtotime($request-&gt;get('end_date')));
  
  $shipments = Shipments::with(['pick_up_address', 'delivery_address', 'empty_return', 'empty_pick_up'])-&gt;get();
  
  if($request-&gt;has('start_date') &amp;&amp; $request-&gt;has('end_date')) {
      $shipments = $shipments-&gt;where('created_at', '&lt;=', $end_date)-&gt;where('created_at', '&gt;=', $start_date);
  } else if($request-&gt;has('start_date')) {
      $shipments = $shipments-&gt;where('created_at', '&gt;=', $start_date);
  } else if($request-&gt;has('end_date')) {
      $shipments = $shipments-&gt;where('created_at', '&lt;=', $end_date);
  } else {
      $shipments = Shipments::with(['pick_up_address', 'delivery_address', 'empty_return', 'empty_pick_up'])-&gt;get();
  }
  </code></pre>
  
  <p>created_at is timestamp.
  my server timezone is UTC.
  please give me proper solution.
  Thanks in advance.</p>