title: Laravel groupBy take n groups
body: <p>Let's say I have a table <code>users</code> with thousands of records, each with their <code>name</code>.</p>
  
  <p>My goal is to draw a pie chart showing the most common names. I want to take, for example, the 9 most common names, and put the rest into a 'others' group.</p>
  
  <p>I can't figure out how to use <code>groupBy()</code> and <code>take()</code>, or whatever, to achieve this.</p>
  
  <p>Any ideas?</p>