title: Laravel Eloquent compare dates by specific format
body: <p>I am having a little trouble comparing dates in Laravel, where the date is a specific format.
  The field in the database has the date like this <code>d-m-Y(20-04-2018)</code> and I am trying to get a result where this date is greater than the date now using this.</p>
  
  <pre><code>$check= Usersubstitutions::where([
     ['user_id', '=', $request-&gt;user],
     ['date_to', '&gt;=', date("d-m-Y")]
  ])-&gt;first();
  </code></pre>
  
  <p>And it never works. I var dumped to see what compares, using a foreach and it says that 20-05-2018 is NOT greater than 04-04-2018. </p>