500 Errors & Debugging
How to diagnose and fix 500 Internal Server Errors.
Step 1: Check the Log
The most important step. Laravel logs all errors to:
tail -100 storage/logs/laravel.log
This will show you the exact error message, file, and line number.
Step 2: Enable Debug Mode (Temporarily!)
APP_DEBUG=true
Refresh the page -- you'll see a detailed error page with:
- Error message
- Stack trace
- Request details
- Environment info
attention
Set APP_DEBUG=false immediately after debugging!