title: Getting error "Access denied for user 'homestead'@'localhost'" in PHP-LARAVEL
body: <p>I am new to php-laravel. I am learning laravel from this tutorial on laracast:</p>
  
  <p><a href="https://laracasts.com/series/laravel-5-from-scratch/episodes/7?autoplay=true" rel="nofollow noreferrer">https://laracasts.com/series/laravel-5-from-scratch/episodes/7?autoplay=true</a></p>
  
  <p>I wrote code like this video but I am getting the following errors for the database, and I do not understand:</p>
  
  <blockquote>
    <p>[Illuminate\Database\QueryException]<br>
    SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost'
    (using password: YES) (SQL: select * from information_schema.tables<br>
    where table_schema = homestead and table_name = migrations)</p>
    
    <p>[PDOException]<br>
    SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost'
    (using password: YES)</p>
  </blockquote>
  
  <p>Does anyone have any idea how to solve it?</p>