title: Laravel .env file returns wrong data
body: <p>I've been trying to get data from my database in laravel 5.7.3, but it seems to be using the wrong database name, username and password as it returns this error:</p>
  
  <pre><code>SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select * from `tasks`)
  </code></pre>
  
  <p>My .env file database section is also according to my needs and set like this:</p>
  
  <pre><code>DB_CONNECTION=mysql
  DB_HOST=127.0.0.1
  DB_PORT=3306
  DB_DATABASE=mrdb
  DB_USERNAME=root
  DB_PASSWORD=
  </code></pre>
  
  <p>PS: My app environment is still local. I can also migrate and put in data into database with <code>artisan tinker</code> without issues, but cannot just fetch data from the database.</p>
  
  <p>The only way it gets to work is to change <code>config/database.php</code> mysql section to my parameters, which I believe it isn't just right.</p>
  
  <p>Why is the .env not wanting the change when the database is called?</p>