You can use Tinker to verify if your database connection is working:
php artisan tinker
Then inside Tinker, run:
DB::connection()->getPdo();
If the connection succeeds, you’ll get back PDO instance details. If it fails, you’ll see the actual error message (usually something helpful like credentials issues or host unreachable).
