While trying to load my laravel project, i got this error SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (SQL: select * from `users` where `email` =eniola@gmail.com limit 1)
. From my search for answers online i figured the issue is from the database details in the .env file, however none of the solutions proposed works.
here are my db details, i used valet.
DB_HOST=127.0.0.1
DB_PORT=80
DB_DATABASE=projectname
DB_USERNAME=root
DB_PASSWORD=
I already ran php artisan migrate:refresh as well as php artisan config:clear, but i get the same error