=========================================== 🔧 FIRST CAPITAL - SYSTEM DEBUG TOOL =========================================== 1️⃣ Testing Database Connection... ✅ Database connection successful ✅ Table 'users' exists ✅ Table 'otp_logs' exists 📋 Users table structure: ✅ Column 'otp_enabled' exists ✅ Column 'otp_code' exists ✅ Column 'otp_expires_at' exists ✅ Column 'otp_attempts' exists ✅ Column 'currency_code' exists 2️⃣ Testing Laravel Framework... ✅ Laravel artisan found ✅ .env file exists ✅ AuthController exists ✅ OtpService exists 3️⃣ Testing Email Configuration... ✅ MAIL_MAILER is set ✅ MAIL_HOST is set ✅ MAIL_PORT is set ✅ MAIL_USERNAME is set ✅ MAIL_PASSWORD is set 4️⃣ Testing API Endpoints... Testing registration endpoint... Registration Response Code: 0 ❌ CURL Error: Failed to connect to localhost port 8000: Connection refused 5️⃣ Checking Laravel Logs... ✅ Laravel log file exists ✅ No recent errors in logs 6️⃣ Checking File Permissions... ✅ Laravel logs directory is writable ✅ Bootstrap cache directory is writable ✅ Sessions directory is writable ✅ Cache directory is writable 7️⃣ Key Environment Variables... APP_ENV: local APP_DEBUG: true APP_URL: https://api.eduvent.online DB_CONNECTION: mysql MAIL_MAILER: smtp 🔧 SUGGESTED FIXES: =================== 1. Run these Laravel commands: php artisan config:clear php artisan cache:clear php artisan route:clear php artisan view:clear php artisan config:cache 2. Fix file permissions: chmod -R 775 storage/ chmod -R 775 bootstrap/cache/ 3. Check .env file for these settings: APP_DEBUG=true (for testing) MAIL_MAILER=smtp DB_CONNECTION=mysql 4. Test email sending: php artisan tinker Mail::raw('Test', function($msg) { $msg->to('test@test.com'); }); 5. Check database migrations: php artisan migrate:status php artisan migrate =========================================== Debug completed. Check the issues above. ===========================================