- ✅ PHP server is working (
test.phpreturns correct response) - ✅ Backend is deployed on Render
- ❌ Laravel routes not working (404 errors)
Wait 2-3 minutes for deployment, then test:
https://validation-engine-backend.onrender.com/laravel-test.php
If SUCCESS (Laravel loads):
{
"status": "Laravel bootstrap successful",
"app_env": "production",
"has_app_key": true
}If FAILURE (Laravel doesn't load):
{
"status": "Laravel bootstrap failed",
"error": "Some error message"
}The issue is with route caching or configuration. Try:
-
Test root route:
https://validation-engine-backend.onrender.com/ -
If still 404, clear route cache:
- Go to Render → Manual Deploy → "Clear build cache & deploy"
The issue is with Laravel dependencies or environment. Check:
-
Missing APP_KEY:
- Generate:
php artisan key:generate --show - Set in Render environment variables
- Generate:
-
Missing dependencies:
- Check Render build logs for composer errors
- Verify
vendor/directory exists
-
Database connection:
- Check PostgreSQL credentials
- Verify database is "Available" in Render
Make sure these are set in Render → Environment:
APP_KEY=base64:base64:VEuAsCY850UHAetxgBvcU751IZb8Xr+eqotR0zAHFJg=
APP_ENV=production
APP_DEBUG=false
APP_URL=https://validation-engine-backend.onrender.com
- Go to Render dashboard
- Click your service
- Click "Manual Deploy"
- Select "Clear build cache & deploy"
- Wait 3-5 minutes
In Render → Logs, look for:
- ✅
"Composer dependencies installed" - ✅
"Migration table created" - ❌
"Class not found" - ❌
"Permission denied"
After fixes, test these URLs:
- Root:
https://validation-engine-backend.onrender.com/ - Debug:
https://validation-engine-backend.onrender.com/debug - API Test:
https://validation-engine-backend.onrender.com/api/test - Validation Rules:
https://validation-engine-backend.onrender.com/api/validation_rules
Once backend routes work:
https://validation-engine-frontend.netlify.app
Should work without CORS errors!
Based on your setup, the issue is probably:
- Route caching - Laravel routes are cached incorrectly
- Environment variables - Missing or incorrect APP_KEY
- Build process - Dependencies not installed properly
Try the Laravel bootstrap test first, then follow the appropriate fix!
If Laravel bootstrap test fails, share:
- The exact error message from
laravel-test.php - Recent Render build logs (last 20 lines)
- Your current environment variables (names only, not values)
Let's get your Laravel routes working! 🚀