title: Laravel Eloquent With() With()
body: <p>How do I go about using multiple Eloquent With()'s?</p>
  
  <p>PortalPlaylistElement Model</p>
  
  <pre><code>class PortalPlaylistElement extends Model
  {
      public $primaryKey = 'code';
      public $incrementing = false;
      public $timestamps = false;
  
      public function AirtimePlaylists()
      {
          return $this-&gt;hasOne('App\AirtimePlaylist','id','playlist_id');
      }
  }
  </code></pre>
  
  <p>AirtimePlaylistContent Model</p>
  
  <pre><code>class AirtimePlaylistContent extends Model
  {
      protected $table = 'cc_playlistcontents';
  }
  </code></pre>
  
  <p>AirtimePlaylistModel</p>
  
  <pre><code>class AirtimePlaylist extends Model
  {
      protected $table = 'cc_playlist';
  
      public function PortalPlaylistElements()
      {
          return $this-&gt;belongsTo('App\PortalPlaylistElement','playlist_id');
      }
  
      public function AirtimePlaylistContents()
      {
          return $this-&gt;hasMany('App\AirtimePlaylistContent','playlist_id');
      }
  }
  </code></pre>
  
  <p>I have no problems with:</p>
  
  <pre><code>AirtimePlaylist::with('AirtimePlaylistContents')-&gt;get());
  </code></pre>
  
  <p>or</p>
  
  <pre><code>PortalPlaylistElement::with('AirtimePlaylists')-&gt;get();
  </code></pre>
  
  <p>But I'd like to get all AirtimePlaylistContents, in an AirtimePlaylist that belongs to a PortalPlaylistElement.</p>
  
  <p>In essence, (Pseudo code)</p>
  
  <pre><code>PortalPlaylistElement::with('AirtimePlaylists')::with('AirtimePlaylistContents')-&gt;get();
  </code></pre>