title: Laravel 5 - SQLSTATE[HY000][1045] Access denied for user 'root'@'localhost' (using password: NO)
body: <p>I am trying to make CRUD operations in laravel and I alway have this error message. I already configured the .env and the config/database.php files to my local setting but it doesn't work.</p>
  
  <p>I tried php artisan cache:clear,php artisan config:clear too...</p>
  
  <p>My config/database.php:</p>
  
  <pre><code>'mysql' =&gt; [
      'driver' =&gt; 'mysql',
      'host' =&gt; env('DB_HOST', 'localhost'),
      'port' =&gt; env('DB_PORT', ''),
      'database' =&gt; env('DB_DATABASE', 'feki_test'),
      '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>My .env:</p>
  
  <pre><code>DB_CONNECTION=mysql
  DB_HOST=localhost
  DB_PORT=
  DB_DATABASE=feki_test
  DB_USERNAME=root
  DB_PASSWORD=
  </code></pre>