title: Laravel paginate resources won't add meta
body: <p>I have resources data returning in JSON. When I try to get my data with paginate it is not included meta data.</p>
  
  <p>Based on <a href="https://laravel.com/docs/5.8/eloquent-resources#pagination" rel="nofollow noreferrer">documentation</a> my data supposed to be included meta like:</p>
  
  <pre><code>"meta":{
      "current_page": 1,
      "from": 1,
      "last_page": 1,
      "path": "http://example.com/pagination",
      "per_page": 15,
      "to": 10,
      "total": 10
  }
  </code></pre>
  
  <p>but my data is returning like this:</p>
  
  <p><a href="https://i.stack.imgur.com/WsQvd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WsQvd.png" alt="one"></a></p>
  
  <h1>Code</h1>
  
  <p><code>controller</code></p>
  
  <pre class="lang-php prettyprint-override"><code>public function index()
  {
      $products = ProductFrontResource::collection(Product::orderby('id', 'desc')-&gt;with(['photos', 'seo', 'tags', 'variations', 'variations.children', 'options', 'options.children', 'categories'])-&gt;where('active', 'yes')-&gt;paginate(8));
      return response()-&gt;json([
          'data' =&gt; $products,
          'message' =&gt; 'Products retrieved successfully.',
      ]);
  }
  </code></pre>
  
  <p><strong>Any idea?</strong></p>