 <p>I have not found any way to do it with SQL, so I found this solution:</p> <pre><code>$posts = Posts::all(); foreach ( $posts as $key =&gt; $post ) if ( strtotime($post-&gt;created_at . '+5 days') &lt; time() ) unset( $posts[$key] ); </code></pre> <p>What I do here is that I iterate through the entire array of objects. As soon as I found a record that does not fit my time limits, I delete it from the array.</p>