title: How to specify columns we want from eager load
body: <p>I am using beyondcode/laravel-comments (<a href="https://github.com/beyondcode/laravel-comments" rel="nofollow noreferrer">https://github.com/beyondcode/laravel-comments</a>) and I try to specify columns I want to get from commentator. here is the code:</p>
  <pre><code>$comment = $post-&gt;comments()-&gt;with('commentator', function ($query) {
          $query-&gt;select('commentator.name', 'commentator.email');
          //or $query-&gt;select('users.name', 'users.email');
  })-&gt;latest();
  </code></pre>
  <p>I am getting error that said</p>
  <pre><code>Undefined table: 7 ERROR:  missing FROM-clause entry for table &quot;commentator&quot; // or users
  </code></pre>
  <p>How can I fix it? thanks</p>