title: Laravel Voyager customize browse.blade.php
body: <p>New to Laravel/Voyager. I have overridden the Voyager Controller and View as mentioned in the <a href="https://voyager-docs.devdojo.com/customization/overriding-files" rel="nofollow noreferrer">documentation</a>. Need to customize the <code>browse.blade.php</code> to show data from the joined table also. The first part was easy, added</p>
  <pre><code>$query-&gt;join('table_b', 'table_a.id', '=', 'table_b.table_a_id');
  </code></pre>
  <p>in the overridden <code>VoyagerBaseController</code> controller <code>index(..)</code> method, and can see the altered query by running</p>
  <pre><code>$query-&gt;toSql();
  </code></pre>
  <p>However, can't find the <code>table_b</code> data in <code>$dataType-&gt;browseRows</code> in the <code>browse.blade.php</code>.</p>
  <p>It seems that I'm missing a step in this process.</p>
  <p>Any ideas?</p>
  <p>Thanks.</p>