title: Multiple level eager loading in Laravel?
body: <p>Let's say I have these relationships</p>
  
  <pre><code>class Invitation
  {
      public function invitedPeople()
      {
          return $this-&gt;belongsTo('App\Person', 'personID');
      }
  }
  
  class Person 
  {
      public function apartments()
      {
          return $this-&gt;belongsToMany('App\Apartment', 'apartment_person', 'personID', 'apartmentID');        
      }
  }
  
  class Apartment 
  {
      public function city()
      {
          return $this-&gt;belongsTo('App\City', 'cityID');
      }
  }
  </code></pre>
  
  <p>My question here is, how many nested levels can we have when using Laravel eager loading?
  I've tried this query and it's not working, can someone suggest a work around for this?</p>
  
  <pre><code>return Invitation::with(['invitedPeople', 'invitedPeople.apartments', 'invitedPeople.apartments.city'])
  </code></pre>