0

I seem to be having a problem with artisan reading the default config/database.php file.

When I run for php artisan migrate:status - or any other migration related commands I get

exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)'

even though the default database connection name is set to sqlite, which doesn't require credentials of any kind.

My .env has APP_ENV=local and I'm running it under the local environment with PHP 5.6.2 using Mamp.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Sebastian Sulinski
  • 5,815
  • 7
  • 39
  • 61

1 Answers1

2

After calling php artisan I've noticed there is a command to clear the configuration cache file php artisan config:clear - then run php artisan config:cache to cache it with the applied changes - which solved the problem.

Sebastian Sulinski
  • 5,815
  • 7
  • 39
  • 61