jasd's avatar
Level 1

Eloquent tries to connect with homestead(?)

I am trying to use Eloquent in my Lumen installation. I've successfully set-up migrations and seeds and have my database configuration in my .env file.

However, I get:

```QLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)``

when trying to instantiate a model in my Controller.

0 likes
1 reply
jasd's avatar
jasd
OP
Best Answer
Level 1

Arr... Had to restart the server to make the .env load correctly.

Please or to participate in this conversation.