What problem does it solve?
This Skill quickly diagnoses and resolves common Laravel database connection issues, such as "connection refused," "access denied," or "database not found." It saves developers significant debugging time by pinpointing the exact cause of connectivity problems.
Core Features & Use Cases
.env & config Validation: Checks database-related environment variables in .env and the config/database.php file for consistency and correctness.
- Live Connection Test: Attempts a real database connection using your current Laravel configuration and reports success or detailed error messages.
- PostgreSQL Server Status: Verifies if your local PostgreSQL server is running and listening on the correct port, a common cause of connection failures.
- Use Case: When your Laravel application throws a "Could not connect to database" error, this Skill will pinpoint whether it's a server issue, incorrect credentials in
.env, a missing database, or a misconfigured session driver, and provide the exact commands to fix it.
Quick Start
My Laravel application is failing to connect to the database. Please use the db-validate skill to check the connection and suggest a fix.