title: Laravel paginate method not working with map collection?
body: <pre><code>$items = Item::with('product')-&gt;paginate(10);
  
      $items = $items-&gt;map(function($product){
            $product-&gt;name = "Test";
            return $product; 
      });
  
      return response()-&gt;json(['items' =&gt; $items]);
  </code></pre>
  
  <p>In my view blade on console paginate objects not showed?</p>