I have correctly specified the configuration in database.php file.
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'laravel5'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', 'abc123'),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
when i run this on console
php artisan migrate
It gives the error Access denied for user 'homestead'@'localhost' (using password: YES)'
Why is it is giving this error and what is the solution?