title: I do not have meta data in laravel's resources
body: <p>I my laravel 5 apps I returned json in request controls, like:</p>
  
  <pre><code>$retArray['tasks']          = $taskList;
  $retArray['tasks_total_count'] = $tasks_total_count;
  return response()-&gt;json($retArray, 200);
  </code></pre>
  
  <p>including additive parameters like tasks_total_count, which was used for pagination.</p>
  
  <p>I laravel 6 app I use resources, like:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Resources\Admin;
  
  use App\Facades\MyFuncsClass;
  use Illuminate\Http\Resources\Json\JsonResource;
  
  class Task extends JsonResource
  {
      public function toArray($request)
      {
          return [
              'id' =&gt; $this-&gt;id,
              'name' =&gt; $this-&gt;name,
              'slug' =&gt; $this-&gt;slug,
              'price' =&gt; $this-&gt;price,
              ...
              'taskRequireSkills' =&gt; !empty($this-&gt;taskRequireSkills) ? $this-&gt;taskRequireSkills : [],
              'events' =&gt; !empty($this-&gt;events) ? $this-&gt;events : [],
              'events_count' =&gt; !empty($this-&gt;events_count) ? $this-&gt;events_count : 0,
              'created_at' =&gt; $this-&gt;created_at,
              ...
          ];
      }
  
      public function with($request)
      {
          return [
              'meta' =&gt; [
                  'version'=&gt;'1.0.2'
              ]
          ];
      }
  
  }
  </code></pre>
  
  <p>I want to add some additive meta data, like version
  but in my browser I do not see this meta data, : <a href="https://prnt.sc/qm4t8y" rel="nofollow noreferrer">https://prnt.sc/qm4t8y</a>
  Also which is correct way to add tasks_total_count parameter to my Resource, which is different for any request?</p>
  
  <p>Thanks!</p>