title: Laravel - Migrations work but post requests throw "Access denied for user 'root'@'localhost'"
body: <p>I'm trying to put a project to production. I'm getting an access error when running an Axios post request to the Laravel API. (I'm not getting this error on the local machine)</p>
  
  <pre><code>[2019-01-28 12:18:04] local.ERROR: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' (SQL: select * from `oauth_clients` where `id` = 2 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 1698): SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' (SQL: select * from `oauth_clients` where `id` = 2 limit 1) at /var/www/html/RemApp/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664, PDOException(code: 1698): SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' at /var/www/html/RemApp/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68)
  </code></pre>
  
  <p>I'm not getting an error when running migrations.
  Below is my .env file. (I have not changed the config/database.php)</p>
  
  <pre><code>DB_CONNECTION=mysql
  DB_HOST=localhost
  DB_PORT=3306
  DB_DATABASE=AppName
  DB_USERNAME=root
  DB_PASSWORD=mypasswordhere
  </code></pre>
  
  <ol>
  <li><p>Tried clearing cache with:</p>
  
  <pre><code>php artisan cache:clear
  php artisan config:clear
  </code></pre></li>
  <li><p>Removed quotes from DB_PASSWORD</p></li>
  <li>The credentials are correct. (Can login and run queries using mysql -u -p)</li>
  </ol>