Open siyamzakir opened 1 year ago
php artisan migrate:fresh --seed
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed: No such host is known. (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE')
Check your .env file to make sure yoy are connecting to a proper database
Name sure your database is running
Try running php artisan optimize:clear
the problem solved here https://stackoverflow.com/questions/65219965/sqlstatehy000-2002-php-network-getaddresses-getaddrinfo-failed-no-such-hos
php artisan migrate:fresh --seed
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed: No such host is known. (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE')