title: Laravel - Get the last entry of each UID type
body: <p>I have a table that has 100's of entries for over 1000 different products, each identified by a unique UID.</p>
  
  <pre><code>ID  UID                 MANY COLUMNS    CREATED AT
  1   dqwdwnboofrzrqww1   ...             2018-02-11 23:00:43
  2   dqwdwnboofrzrqww1   ...             2018-02-12 01:15:30
  
  3   dqwdwnbsha5drutj5   ...             2018-02-11 23:00:44
  4   dqwdwnbsha5drutj5   ...             2018-02-12 01:15:31
  
  5   dqwdwnbvhfg601jk1   ...             2018-02-11 23:00:45
  6   dqwdwnbvhfg601jk1   ...             2018-02-12 01:15:33
  
  ...
  </code></pre>
  
  <p>I want to be able to get the last entry for each UID.</p>
  
  <pre><code>ID  UID                 MANY COLUMNS    CREATED AT
  2   dqwdwnboofrzrqww1   ...             2018-02-12 01:15:30
  4   dqwdwnbsha5drutj5   ...             2018-02-12 01:15:317
  6   dqwdwnbvhfg601jk1   ...             2018-02-12 01:15:33
  </code></pre>
  
  <p>Is this possible in one DB call?</p>
  
  <p>I have tried using DB as well as Eloquent but so far I either get zero results or the entire contents of the Table.</p>
  
  <p>Andy</p>