title: Laravel - Search betwwen dates issue
body: <p>I am trying to use date filter in Laravel. Everything is working fine except the fact that if start_date and end_date are the same date. Then it brings no result except when I increase by 1.</p>
  
  <pre><code>    public function userresponseReport(Request $request)
  {
      $data['title'] = 'User Response';
  
      $userresponses = DB::table('user_response as g')
      -&gt;select(
         DB::raw('DATE(g.created_at) as created_date'),
         'g.msisdn', 
         'g.game_code', 
         'g.answer',
         'g.answer_code',
         'g.Amount_charged',
         'g.payment_ref',
         'g.status',
         'g.user_channel'                
    )               
   -&gt;orderByRaw('g.created_at DESC'); 
  
      $render=[];  
      if(isset($request-&gt;start_date) &amp;&amp; isset($request-&gt;end_date))
      {
          $userresponses=$userresponses-&gt;whereBetween('created_at',[$request-&gt;start_date,$request-&gt;end_date]);
  
          $render['start_date']=$request-&gt;start_date;
          $render['end_date']=$request-&gt;end_date;
      }elseif(isset($request-&gt;start_date))
      {
          $userresponses=$userresponses-&gt;where('created_at',$request-&gt;start_date);
          $render['start_date']=$request-&gt;start_date;
      }                
      $userresponses= $userresponses-&gt;orderBy('created_at','DESC');
      $userresponses= $userresponses-&gt;paginate(15);
      $userresponses= $userresponses-&gt;appends($render);
      $data['userresponses'] = $userresponses;
  
  return view('report.userresponseReport',$data);        
  }
  </code></pre>
  
  <p>How do I resolve this?</p>