title: undefined offset 0 with eloquent collection
body: <p>When i try to make query like this : </p>
  
  <pre><code>$result = Entity::with (
      [ 'councils' =&gt; function ($query) use ($userId) {
          $query-&gt;active()-&gt;with([
          'members' =&gt; function ($query) use ($userId) {
              $query-&gt;where ('user', $userId);
          }
          ])-&gt;first();
      }])-&gt;find ($entityId);
  </code></pre>
  
  <p>but eloquent return relations into an array. i need to use something like this : </p>
  
  <pre><code>$result-&gt;councils[0]-&gt;members[0]-&gt;pivot-&gt;role;
  </code></pre>
  
  <p>how can i get collection without array offsets and use above result like this one : </p>
  
  <pre><code>$result-&gt;councils-&gt;members-&gt;pivot-&gt;role;
  </code></pre>
  
  <p>my <code>dd()</code> from <code>$result</code> variable : </p>
  
  <pre><code> #attributes: array:15 [▶]
    #original: array:15 [▶]
    #relations: array:1 [▼
      "councils" =&gt; Collection {#362 ▼
        #items: array:1 [▼
          0 =&gt; Council {#360 ▼
            #guarded: array:1 [▶]
            #connection: null
            #table: null
            #primaryKey: "id"
            #perPage: 15
            +incrementing: true
            +timestamps: true
            #attributes: array:14 [▶]
            #original: array:14 [▶]
            #relations: array:1 [▼
              "members" =&gt; Collection {#364 ▼
                #items: array:1 [▼
                  0 =&gt; User {#359 ▶}
                ]
              }
            ]
            #hidden: []
            #visible: []
            #appends: []
            #fillable: []
            #dates: []
            #dateFormat: null
            #casts: []
            #touches: []
            #observables: []
            #with: []
            #morphClass: null
            +exists: true
            +wasRecentlyCreated: false
          }
        ]
      }
    ]
  </code></pre>