title: Laravel 8 Project is not opening in the server..getting error in TestDatabases.php
body: <p>I am Getting error when I open the laravel 8 project</p>
  <pre><code> protected function switchToDatabase($database)
      {
          DB::purge();
   
          $default = config('database.default');
   
          config()-&gt;set(
              &quot;database.connections.{$default}.database&quot;,
              $database,
          );
      }
  </code></pre>
  <blockquote>
  <p><em>&quot;syntax error, unexpected ')'&quot;</em> in vendor/laravel/framework/src/Illuminate/Testing/Concerns/TestDatabases.php</p>
  </blockquote>