title: Using from in eloquent query
body: <p>I am using <code>Laravel Framework 6.16.0</code>:</p>
  <p>As I am adding my connection to my DB object I cannot select the table to join on.</p>
  <pre><code>            $symbol = DB::connection('mysql_prod')-&gt;select('companies') // &quot;companies&quot; is the table
                  -&gt;join('insider_transaction', 'insider_transaction.companies_id', '=', 'companies.id')
                  -&gt;join('persons', 'persons.id', '=', 'insider_transaction.persons_id')
                  -&gt;where('insider_transaction.transaction_date', '&gt;=', Carbon::today()-&gt;subDays(3)-&gt;startOfDay())
                  -&gt;orderBy('transaction_date', 'desc')
                  -&gt;distinct()-&gt;get('symbol');
  
  </code></pre>
  <p>Before I coded, <code>DB::table('companies')</code>, as I using now the <code>DB::connection(...)</code> I am wondering how to add the selected table to my eloquent query.</p>
  <p>I appreciate your replies!</p>