title: Laravel whereDate and where
body: <p>I'm using laravel 5.4, and I need to check both event and created date conditions at once. So I used following code, </p>
  
  <pre><code>  protected $table = 'qlog';   
          public $timestamps = false;
  
          public function getAbondonedCalls(){
  
          $results =  DB::table('qlog')
              -&gt;whereDate('created', '=', DB::raw('curdate()'))
              -&gt;where('event', '=', 'ABANDON')
              -&gt;get();  
  
               var_dump($results);
              die(); 
  
  }   
  </code></pre>
  
  <p>But this code returns nothing. After removing this line it returns a record.</p>
  
  <pre><code> -&gt;whereDate('created', '=', DB::raw('curdate()'))
  </code></pre>
  
  <p>How to add both conditions?</p>