title: Laravel 5 Eloquent appending relationships to JSON on multiple levels
body: <p>So it is pretty easy to include relationships on models such as:</p>
  
  <pre><code>class User extends Model {
       protected $with=['roles']
  }
  
  class Role extends Model {
       protected $with=['permissions']
  }
  </code></pre>
  
  <p>when there's a get request to the user resource, it will include associated roles automagically. </p>
  
  <p>But in this setup, the role resources returned with user resource also includes it's own included relationships like:</p>
  
  <pre><code>{user:{id:1, roles:[{id:1, permissions:[{id:1..
  </code></pre>
  
  <p>This generates huge objects, that mostly include unnecessary related child models. </p>
  
  <p>I can workaround this by setting attributes to replace the default relationship includes but the API i am working on has 30+ resources and that path isn't the ideal beause it will require me to write a lot of repeated code on models.</p>
  
  <p>is there a way to manage the depth of appended relationships easily?</p>
  
  <p>i imagine something like:</p>
  
  <pre><code>class Role extends Model {
       protected $with=['permissions'];
       protected $includeWith=[]; // role wont have the permissions appended when included
  }
  </code></pre>