title: Shows only 3 most recent data
body: <p>So I want to display the three most recent data from the 'berita' table.
  i have created a function in controller, and an error appears <strong>Call to undefined method stdClass::take()</strong></p>
  <pre><code>public function index()
      {
          $data = [
              'berita' =&gt; $this-&gt;BeritaModel-&gt;allData()-&gt;last()-&gt;take(3)-&gt;get(),
          ];
          return view('user.v_home_smk', $data);
      }
  </code></pre>