title: Laravel DB connection not refreshing after changing the config
body: <p>This is my database connection which I have specified.</p>
  
  <pre><code>'mysql_test' =&gt; [
            'driver' =&gt; 'mysql',
            'host' =&gt; env('DB_HOST', '127.0.0.1'),
            'port' =&gt; env('DB_PORT', '3306'),
            'database'=&gt; '',
            'username' =&gt; env('DB_USERNAME', 'forge'),
            'password' =&gt; env('DB_PASSWORD', ''),
            'unix_socket' =&gt; env('DB_SOCKET', ''),
            'charset' =&gt; 'utf8mb4',
            'collation' =&gt; 'utf8mb4_unicode_ci',
            'prefix' =&gt; '',
            'prefix_indexes' =&gt; true,
            'strict' =&gt; true,
            'engine' =&gt; null,
        ],
  
  </code></pre>
  
  <p>Now I am trying to change the <code>database</code> value from the code and then connection to the database like this</p>
  
  <pre><code> for( $i = 1; $i &lt;=4 ; $i++)
      {
        $db='test_'.$i;
      DB::connection('mysql_test')-&gt;statement('CREATE DATABASE '.$db.';' );
  
     Config::set('database.connections.mysql_test.database' , $db);
      error_log(config('database.connections.mysql_test.database'));
      DB::reconnect('mysql_test');
      error_log(DB::connection('mysql_test')-&gt;getDatabaseName());
  
    }
  
  </code></pre>
  
  <p><code>config</code> value is getting changed as on the first <code>error_log</code>, I am getting my changed <code>config</code> value. But when I connect back again to the same connection with the updated config, I am not getting my database name. Connection is not getting associated to any database.</p>