title: Laravel: How to get last N entries from DB
body: <p>I have table of dogs in my DB and I want to retrieve <strong><code>N latest added dogs</code></strong>. </p>
  
  <p>Only way that I found is something like this:</p>
  
  <pre><code>Dogs:all()-&gt;where(time, &lt;=, another_time);
  </code></pre>
  
  <p>Is there another way how to do it? For example something like this <code>Dogs:latest(5);</code></p>
  
  <p>Thank you very much for any help :)</p>