I'm trying out Laravel Sail for the first time and it's been a really bumpy road, likely through no fault of the package. I'm having an issue with either being able to access my test site, or migrate the database.
- To access the test site, I need my
DB_HOST
set tomysql
.- However, I cannot run a migration, getting
php_network_getaddresses: getaddrinfo failed: nodename nor servname provided
when trying.
- However, I cannot run a migration, getting
- To migrate the database, I need my
DB_HOST
set to127.0.0.1
.- However, I cannot access the site, getting
Connection Refused
even if settingDB_HOST
tolocalhost
.
- However, I cannot access the site, getting
I'm working off a mid-2012 macbook pro that has seen Valet with all it's brew requirements, various Homestead boxes, and various other tinkering, and while I believe I've turned off any other services running, I can only imagine this has something to do with that?