title: How to add an key for parent::toArray in Laravel Resources
body: <p>My code is;</p>
  
  <pre><code>$live_events = LiveEventContent::whereIn('parent_content_id',$contents_ids)-&gt;get();
  foreach ($live_events as $live_event){
      //I will add an key called isStreamAvailable to the object
      $live_event-&gt;isStreamAvailable = true;
  }
  return LiveEventResource::collection($live_events);
  </code></pre>
  
  <p>and My Resource model;</p>
  
  <pre><code>public function toArray($request)
  {
      return parent::toArray($request);
  }
  </code></pre>
  
  <p>I want to add isStreamAvailable key into the resource.</p>
  
  <p><strong>How to edit the function in my resource model instead parent::toArray?</strong> </p>