Laravel - where less/greater than date syntax : <p>This is not showing the correct count. What is the correct syntax ?</p>

<pre><code>$this-&gt;data['Tasks'] = \DB::table('tb_tasks')-&gt;where('Status', 'like', 'Open%')-&gt;whereDate('DeadLine', '&gt;', 'CURDATE()')-&gt;count();
</code></pre>
