title: Laravel Eloquent Not Created_At today
body: <p>Alright so I'm trying to make a query in which the users who were not <code>created_at</code> this day are selected and I'm having a little trouble. Everything I've tried they're still selected. Here is some of the stuff I've tried (with no success):</p>
  
  <pre><code>$users = User::where('created_at', '!=', date('Y-m-d H:i:s'))-&gt;get()
  $users = User::where('created_at', '!=', new DateTime())-&gt;get()
  $users = User::where('created_at', '!=', date('Y-m-d'))-&gt;get()
  $users = User::where('created_at', '!=', new DateTime('today'))-&gt;get()
  </code></pre>
  
  <p>I also tried using the <code>&lt;&gt;</code> operator instead of <code>!=</code>.</p>
  
  <p>I suspect that the issue lies in the fact that the users were not created 'this second', so it has them as not equal and they pass through. How can I fix this?</p>
  
  <p>Side note: I'm using SQLite for development but will be using Postgres on the live site so I would like something compatible with both. </p>