title: Laravel Eloquent setAppends() to entire model collection?
body: <p>As per <a href="https://laravel.com/docs/5.6/eloquent-serialization" rel="noreferrer">https://laravel.com/docs/5.6/eloquent-serialization</a>, one can use <code>setAppends</code> on a model instance to dynamically add any available extra attributes to a model. However, I haven't been able to find a way to do this to a collection of models, aside from looping through the collection. </p>
  
  <p>Is there a smarter way to do this? Like so:</p>
  
  <pre><code>$facilities = Facility:all();
  $facilities-&gt;setAppends();
  </code></pre>
  
  <p>Currently the only option would be:</p>
  
  <pre><code>foreach ($facilities as $facility) {
      $facility-&gt;setAppends([
          'your_attribute_here'
      ]);
  }
  </code></pre>
  
  <p>EDIT: To clarify, I want to do this dynamically at runtime. The extra properties I'm defining aren't needed everywhere where the model is fetched and can cause extra overhead in large quantities.</p>