Since you are running the migrations from the host, you should set the DB_HOST to 192.168.10.10 which is the Homestead IP address.
May 28, 2019
5
Level 1
Homestead - Laracasts Database Migrations: php artisan migrate Error
Hello,
I am using Laravel Homestead to run projects following along with the Laravel from Scratch Laracasts series. I am using a fresh Homestead installation with a new blank Laravel project, and upon running php artisan migrate (or other commands) am presented with one of two errors. When the DB_HOST=127.0.0.1 in my .env file, I get the following Connection refused error: https://imgur.com/U7PMB7l. When using DB_HOST=localhost I get the following different error: https://imgur.com/vA85BEL.
Any suggestions?
Please or to participate in this conversation.