title: Laravel, "Call to undefined method Illuminate\Database\MySqlConnection::setReconnector()"
body: <p>for some reason this code</p>
  
  <pre><code>$results = DB::table('salaries')
              -&gt;join('districts', 'salary_district', '=', 'district_id')
              -&gt;join('companies', 'salary_company', '=', 'company_id')
              -&gt;join('positions', 'salary_position', '=', 'position_id')
              -&gt;select('*')
              -&gt;get();
  </code></pre>
  
  <p>Returns this error in the log file: 'Call to undefined method Illuminate\Database\MySqlConnection::setReconnector()' in C:\xampp\htdocs\salaries\bootstrap\compiled.php:7524</p>
  
  <p>What is causing this? Googling the error gave me nothing.</p>