title: Laravel: Delete all except latest 5
body: <p>I'm trying to make this query work:</p>
  
  <pre><code>$deleteSubmissions = ViewedSubmission::where('user_id', Auth::user()-&gt;id)
      -&gt;latest()
      -&gt;skip(5)
      -&gt;delete();
  </code></pre>
  
  <p>I want to delete all ViewedSubmissions records for the auth user EXCEPT for the latest 5. How can I make this work? Currently this doesn't delete anything, despite having more than 5 records.</p>