title: Laravel 5 - Database connection denied
body: <p>We're making an application for school in which I made a form to add something to the database. I've been following the Laracast, but whenever I try to submit my form to add the contents to the database I get;</p>
  
  <blockquote>
    <p>PDOException in Connector.php line 55: SQLSTATE[28000] [1045] Access
    denied for user 'root'@'localhost' (using password: YES)</p>
  </blockquote>
  
  <p>I can use the command <code>php artisan migrate</code> perfectly and it creates the tables.
  It's just on the application itself that it doesn't work. </p>
  
  <p>Is there any way to solve this?</p>
  
  <p>.env file</p>
  
  <pre><code>PP_ENV=local
  APP_DEBUG=true
  APP_KEY=Hp7smlDebYOhW04Xn70J0TWfySNI2iAG
  
  DB_CONNECTION=mysql
  DB_HOST=localhost
  DB_DATABASE=boost
  DB_USERNAME=root
  DB_PASSWORD=******
  
  CACHE_DRIVER=file
  SESSION_DRIVER=file
  </code></pre>