Sami MAAZAOUI
Sami MAAZAOUI

Reputation: 49

laravel QueryException line 770

I have a problem when I want to register in laravel. After completing the registration form I see this error message:

QueryException in Connection.php line 770: SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: select count(*) as aggregate from users where email =

thank you for helping me.

Upvotes: 2

Views: 2257

Answers (1)

Illia Yaremchuk
Illia Yaremchuk

Reputation: 2025

Create DB and add information in /.env file

DB_HOST=localhost
DB_DATABASE=YOUR_DB_NAME
DB_USERNAME=YOUR_DB_USER_NAME
DB_PASSWORD=YOUR_DB_USER_PASSWORD

Upvotes: 1

Related Questions