Access denied for user ‘homestead’@’localhost’ issue

After successfully installing laravel 5 and updating database.php file for configuration you may encounter Access denied for user ‘homestead’@’localhost’ issue.

The problem can be solved by correcting / updating .env.php file. This file can be found in root directory of application. In this file you will have to correct the following lines depending upon your database configuration.

Correctly change / update host, database name, user name, and password. Refresh the page and you are done.



If issues still exists, restart your server and also run the following command to clear the configuration cache file.



Read More