title: How do I get the second last record of a table in laravel
body: <p>I want the second last record from my table and search already and 
  I tried this: </p>
  
  <pre><code>$news2 = News::orderBy('created_at', 'desc')-&gt;skip(1)-&gt;take(1)-&gt;get();
  </code></pre>
  
  <p>but nothing works. </p>
  
  <p>I get this error: </p>
  
  <blockquote>
    <p>Property [datum] does not exist on this collection instance. (View: C:\xampp\htdocs\j4ylara\resources\views\user\start.blade.php)</p>
  </blockquote>
  
  <p>If I want the last one everything works it perfectly.</p>
  
  <pre><code>$news1 = News::all()-&gt;last();
  </code></pre>
  
  <p>and my view is the same </p>
  
  <pre><code>&lt;div class="col-12 col-md-6 news"&gt;
  
  
      &lt;div class="news-content"&gt;
                      &lt;div class="date"&gt;&lt;i class="far fa-calendar-alt"&gt;&lt;/i&gt; {{ $news1-&gt;datum }}&lt;/div&gt;
                      &lt;h4 class="news-title"&gt;{{ $news1-&gt;newstitel }}&lt;/h4&gt;
                      &lt;p class="news-text"&gt;{{ $news1-&gt;newsbeschreibung }}&lt;/p&gt;
                      &lt;a href="#" class="btn btn-primary"&gt;
                          mehr lesen &amp;raquo;
                      &lt;/a&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row no-gutters news-wrapper"&gt;
              &lt;div class="col-12 col-md-6 news-image"&gt;
                  &lt;img class="img-fluid" src="https://picsum.photos/385/370/?random"&gt;
              &lt;/div&gt;
              &lt;div class="col-12 col-md-6 news"&gt;
                  &lt;div class="news-content"&gt;
                      &lt;div class="date"&gt;&lt;i class="far fa-calendar-alt"&gt;&lt;/i&gt;{{ $news2-&gt;datum }}&lt;/div&gt;
                      &lt;h4 class="news-title"&gt;{{ $news2-&gt;newstitel }}&lt;/h4&gt;
                      &lt;p class="news-text"&gt;{{ $news2-&gt;newsbeschreibung }}&lt;/p&gt;
                      &lt;a href="#" class="btn btn-primary"&gt;
                          mehr lesen &amp;raquo;
                      &lt;/a&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>