title: Nested Mapped Laravel Query with Relationships
body: <p>I am outputting a query which has a relationship with another model.</p>
  
  <p>One of the fields I need is within the relationship</p>
  
  <pre><code>  $officeFlagMap = $officeFlagQuery-&gt;map(function ($item) {
       return [
          'propagent_id'   =&gt; $propagent_id,
       ];
       $item-&gt;theAgent-&gt;map(function ($inner){
          return [
             'agtFullName'   =&gt; $inner-&gt;agtFullName,
          ];
       });
    });
  </code></pre>
  
  <p>I have checked that both values are correct but I am only getting the output for the 
  <code>$inner-&gt;agtFullName.</code><br>
  How can I modify this to chain the returns and show both fields?</p>