SQLSTATE[HY000] [2002] Connection Refused in Laravel and Docker
This error means your Laravel app could not reach the database at all. It is almost always one of two causes: a wrong DB_HOST, or your app starting before MySQL is actually ready inside Docker. Here is how to tell which one you have, and the real fix for each.