SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed:
[Illuminate\Database\QueryException] SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Este host n�o � conhecido. (SQL: select * from information_schema.tables where table_schema = laravel-b log and table_name = migrations)
[Doctrine\DBAL\Driver\PDOException] SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Este host n�o � conhecido.
[PDOException] SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Este host n�o � conhecido.
[PDOException] PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Este host n�o � conhecido.
Seu código no .env precisa ter essa configuração. (Your .env file have to have this configurations – and ready!)
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=mydb
DB_USERNAME=root
DB_PASSWORD=”