title: Get All Latest Records Using Laravel Eloquent
body: <p>I tried querying the database this way but it returns the error.</p>
  
  <blockquote>
    <p>latest() not found.</p>
  </blockquote>
  
  <pre><code>DailyReport::get()-&gt;latest()-&gt;paginate(10)
  </code></pre>
  
  <p>I want it to return all the DailyReports with pagination.</p>