title: Laravel query-builder for insert data from a external db to another db
body: <p>I tried to send data from external db table to internal db table with query-builder in Laravel 5.4v. could you tell me how to modify below code? thanks.</p>
  
  <pre><code>DB::connection('ext_db')-&gt;table('ext_customers')-&gt;chunk(1000, function ($All){
      foreach ($All as $Data){
          DB::connection('inn_db')-&gt;table('inn_customers')-&gt;insert(
              [
                  column1 =&gt; $Data-&gt;columnToCopy,
                  etc..
              ]);
  }};
  </code></pre>