Laravel Rust and Laravel Go Debug Mode Check
Recognises a Laravel Rust or Laravel Go application and checks whether it returns debug output or is running in the local environment.
What This Check Detects
Recognises a Laravel Rust or Laravel Go application and checks whether it returns debug output or is running in the local environment.
Full Documentation
What this check looks for
StackShield first works out whether your site is a Laravel Rust or Laravel Go application. It recognises the pages the two frameworks build themselves: the health page at /up, the built-in error page, and the debug page. An application that is neither passes with nothing checked.
For a Laravel Rust or Go application it then looks for two things in the responses it received:
- Debug output. The debug page, which names the framework and its version, or a JSON error that carries the error's type with its file and line (Laravel Rust) or a Go stack trace (Laravel Go).
- A local environment. The Inertia devtools recorder only runs when
APP_ENV=local, and it marks every page it serves.
Why it matters
With APP_DEBUG on, a server error shows the error and its type, the source around the line that failed, the chain of causes and the request that triggered it. That is a map of your code and of the infrastructure in front of it.
APP_ENV=local on a public host matters for a different reason. In the local environment neither framework restricts which Host headers it answers, so the protection against password reset poisoning is off, and local settings usually come with debug mode on.
What this check cannot tell you
Both frameworks show debug output only for a server error. A page that does not exist returns the same response whether debug is on or off. StackShield does not try to make your application fail, so a pass means no debug output was returned in what we requested. It does not prove APP_DEBUG is off. Confirm that from your environment settings.
Laravel Rust and Laravel Go share their built-in pages, so the framework is named exactly only when a debug page says which it is. Both are in beta and these pages may change between releases.
What the findings mean
Debug output is critical. A local environment is high. For both, set APP_ENV=production and APP_DEBUG=false in the production environment, check that no custom variable on the host overrides what your platform sets, and redeploy. When APP_ENV is not set at all, both frameworks run as production.
Related Security Checks
Laravel Debug Mode
Checks if Laravel debug mode is enabled in production.
Exposed Diagnostic Pages and Database Tools
Looks for phpinfo pages, PHP-FPM and web server status pages, Adminer, phpMyAdmin, OPcache panels, the Go profiler and P...
Host Header Injection
Checks whether the application builds its URLs, including password reset links, from a forged host name.
Is your Laravel app exposed right now?
34% of Laravel apps we scan have at least one critical issue, and most teams do not find out until something breaks. The free scan checks your live app in 60 seconds. Then StackShield re-runs every check after each deploy, so a fix you ship today does not quietly regress next week.