title: Laravel + Inertia + Vuejs: Pagination
body: <p>When I get all the records it works:</p>
  <pre class="lang-php prettyprint-override"><code>    ...
  
      $items = Item::all();
  
      return Inertia::render('Rentals/Items', ['items' =&gt; $items]
  );
  </code></pre>
  <p>But when I try to paginate, it breaks down:</p>
  <pre class="lang-php prettyprint-override"><code>    ...
  
      $items = Item::paginate(15);
  
      return Inertia::render('Rentals/Items', ['items' =&gt; $items]
  );
  </code></pre>
  <p>I get this error:</p>
  <blockquote>
  <p><code>Uncaught (in promise) TypeError: Cannot read property 'id' of null</code></p>
  </blockquote>
  <p>Help please. What am I doing wrong? I've been stuck for days.</p>