← PHP / Laravel · Contents

PHP-013 / Beginner

APP_DEBUG=true in production

A05:2021 Security Misconfiguration · CWE-209 Error Message Information Exposure

Why is this a problem?

Stack traces, environment variables and queries appear on screen.

How to fix it

ini
APP_ENV=production
APP_DEBUG=false
LOG_LEVEL=error

Further reading