SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known code example
Example: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
Check your DB_HOST on your .env file
DB_HOST=http://localhost/ --> DB_HOST=localhost