title: SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) in Laravel
body: <p>I am new to Laravel and I already went through the documentation. I did login and register pages by using auth artisan command.</p>
  <p>I am trying to store the values from the registration page but when I click on the submit button I get this error:</p>
  <blockquote>
  <p>SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost'
  (using password: YES) (SQL: select count(*) as aggregate from <code>users</code>
  where <code>email</code> = xxxxxx@gmail.com)</p>
  </blockquote>
  <p>How do I resolve this?</p>