title: (2/2) QueryException SQLSTATE[HY000] [1049] Unknown database 'homestead' (SQL: select count(*) as aggregate from `users` where `email` =
body: <p>I want to try the registration form of laravel where I have to insert my database information in the <code>.env</code> file.</p>
  
  <pre><code> DB_CONNECTION=mysql
   DB_HOST=127.0.0.1
   DB_PORT=3306
   DB_DATABASE=blog
   DB_USERNAME=root
   DB_PASSWORD=admin
  </code></pre>
  
  <p>In my <code>config/database.php</code> file I also change the values to my current database</p>
  
  <pre><code> 'mysql' =&gt; [
          'driver' =&gt; 'mysql',
          'host' =&gt; env('DB_HOST', 'localhost'),
          'port' =&gt; env('DB_PORT', '3306'),
          'database' =&gt; env('DB_DATABASE', 'blog'),
          'username' =&gt; env('DB_USERNAME', 'root'),
          'password' =&gt; env('DB_PASSWORD', 'admin'),
          'unix_socket' =&gt; env('DB_SOCKET', ''),
          'charset' =&gt; 'utf8mb4',
          'collation' =&gt; 'utf8mb4_unicode_ci',
          'prefix' =&gt; '',
          'strict' =&gt; true,
          'engine' =&gt; null,
      ],
  </code></pre>
  
  <p>But, I get the error that my <code>homestead</code> database is unknown. I have know idea where the information comes from ? I don't have connect a database with this name in any file? or should there a third file to change?</p>