title: Laravel - How to Resolve whereDate function issue
body: <p>I have this code in Laravel-5.8</p>
  <pre><code>$currentDate = Carbon::now()-&gt;format('Y-m-d');
  
  $currentstatus = HrLeaveRequest::select('leave_status')-&gt;whereDate('resumption_date, '&lt;=', $currentDate)-&gt;whereIn('leave_status', [1, 3, 4])-&gt;orderBy('created_at', 'DESC')-&gt;first();
  </code></pre>
  <p>$currentDate = 2021-05-10</p>
  <p>$resumption_date = 2021-05-12</p>
  <p>But when I dd($currentstatus), I got null</p>
  <p>How do I resolve this?</p>
  <p>Thanks</p>