title: why .env file configuration in laravel is not working
body: <pre><code>DB_CONNECTION=mysql      
  DB_HOST=127.0.0.1     
  DB_PORT=3306     
  DB_DATABASE=
  DB_USERNAME=root     
  DB_PASSWORD=   
  </code></pre>
  
  <p>this is my configuration for laravel 5.4 
  but php artisan migrate is not working and have error
  and the migrate error</p>
  
  <pre><code>Users-MacBook-Pro: ATP Developers php artisan migrate
  
  In Connection.php line 664: 
  SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO) (SQL: select * from information_schema.tables where table schema = atp_db and table_name = migrations)
  
  In Connector.php line 87:
  SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)
  </code></pre>