title: Get relation of relation
body: <p>I'm trying to get the comments of the links with laravel relationship, the comments of links return normally, but I don't know how to get it in view or dd(), how can I do it?</p>
  
  <p>Controller:</p>
  
  <pre><code>$page = Page::where('friendly_url', $id)
                  -&gt;select('id', 'photo', 'friendly_url', 'name', 'description', 'followers', 'links', 'tag_id', 'links_clicks')
                  -&gt;with('ptag', 'links', 'links.comments', 'links.tag')
                  -&gt;with(['links.comments.user' =&gt; function($query) {
                  $query-&gt;select('id', 'name', 'lastname');
              }])-&gt;with(['links.comments.userProfile' =&gt; function($query) {
                  $query-&gt;select('id', 'photo');
              }])-&gt;first();
  </code></pre>
  
  <p>dd($page->getRelation('links')</p>
  
  <pre><code>Collection {#301 ▼
    #items: array:2 [▼
      0 =&gt; Link {#307 ▼
        #relations: array:2 [▼
          "comments" =&gt; Collection {#316 ▼
            #items: array:1 [▶]
          "tag" =&gt; Tag {#322 ▶}
        ]
  </code></pre>
  
  <p>dd($page->getRelation('links')->getRelation('comments'))</p>
  
  <pre><code>BadMethodCallException
  Method getRelation does not exist.
  </code></pre>
  
  <p>dd($page->getRelation('links')->comments)</p>
  
  <pre><code>Exception
  Property [comments] does not exist on this collection instance.
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I want to show the attributes of comment and comment.user, how I can do it?</p>
  
  <pre><code>foreach($page-&gt;getRelation('links')-&gt;pluck('comments') as $comment) {
      dd($comment);             
  }
  
  Collection {#327 ▼
    #items: array:1 [▼
      0 =&gt; Comment {#325 ▼
        #attributes: array:5 [▼
          "id" =&gt; 3
          "content" =&gt; "teste"
          "link_id" =&gt; 1
          "user_id" =&gt; 1
          "created_at" =&gt; "2018-01-11 00:47:32"
        ]
        #relations: array:2 [▼
          "user" =&gt; User {#330 ▼
            #attributes: array:3 [▼
              "id" =&gt; 1
              "name" =&gt; "Halysson"
              "lastname" =&gt; "Teves dos Santos"
            ]
          }
          "userProfile" =&gt; UserProfile {#326 ▶}
        ]
  </code></pre>