title: My Laravel project don't conect to XAMPP DataBase
body: <p>I've followed good tutorials on the web and I do make, I've made step by step its advices and I don't achive to conect my laravel framework to XAMPP.. I don't have idea what's going on.. I've written down the .env and config/database.php with the same data configurations (DB_DATABASE= styde_curso, DB_USERNAME= root, and DB_PASSWORD= ).</p>
  
  <p>.env</p>
  
  <pre><code>APP_NAME=Prueba
  APP_ENV=local
  APP_KEY=base64:MWU6YadaT17Ga1m3hrtOQqYq6pIwOgrNWQe+mJazyw0=
  APP_DEBUG=true
  APP_URL=homestead.test
  LOG_CHANNEL=stack
  DB_CONNECTION=mysql
  DB_HOST=localhost
  DB_PORT=3306
  DB_DATABASE=styde_curso
  DB_USERNAME=root
  DB_PASSWORD=
  </code></pre>
  
  <p>config/database.php</p>
  
  <pre><code>'mysql' =&gt; [
  
              'driver' =&gt; 'mysql',
              'host' =&gt; env('DB_HOST', '127.0.0.1'),
              'port' =&gt; env('DB_PORT', '3306'),
              'database' =&gt; env('DB_DATABASE', 'styde_curso'),
              'username' =&gt; env('DB_USERNAME', 'root'),
              'password' =&gt; env('DB_PASSWORD', ''),
              '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>Although I'd applied "php artisan config:clear" I'm getting the same result "ERROR" I've copied the error that git hub notices me:  </p>
  
  <blockquote>
    <p>vagrant@homestead:~/code/Prueba$ php artisan config:clear
    Configuration cache cleared! vagrant@homestead:~/code/Prueba$ php
    artisan migrate</p>
    
    <p>Illuminate\Database\QueryException  : SQLSTATE[HY000] [1045] Access
    denied for user 'root'@'localhost' (using password: NO) (SQL: select *
    from information_schema.tables where table_schema = styde_curso and
    table_name = migrations)</p>
    
    <p>at</p>
    
    <p>/home/vagrant/code/Prueba/vendor/laravel/framework/src/Illuminate/Database/Connection.php:
    664</p>
  </blockquote>
  
  <pre><code>660|         // If an exception occurs when attempting to run a query, we'll format the error
  661|         // message to include the bindings with SQL, which will make this exception a
  662|         // lot more helpful to the developer instead of just the database's errors.
  
  663|         catch (Exception $e) {
  664|             throw new QueryException(
  665|                 $query, $this-&gt;prepareBindings($bindings), $e
  666|             );
  667|         }
  668|
  </code></pre>
  
  <p>Exception trace:</p>
  
  <blockquote>
    <p>1   PDOException::("SQLSTATE[HY000] [1045] Access denied for user
    'root'@'localhost' (using password: NO)")
    /home/vagrant/code/Prueba/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
    : 68</p>
    
    <p>2<br>
    PDO::__construct("mysql:host=localhost;port=3306;dbname=styde_curso",
    "root", "", [])
          /home/vagrant/code/Prueba/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
    : 68</p>
  </blockquote>
  
  <p>I'll wait your help or whomever can help me.. 
      Thanx.</p>