How to Fix Laravel Ignition Exposure in Production

Checks if Laravel Ignition error page is exposed in production.

application security Easy fix 5 minutes

What This Check Detects

Checks if Laravel Ignition error page is exposed in production.

Full Documentation

What is Ignition?

Ignition is Laravel's beautiful error page showing detailed stack traces and debugging information. It should never be accessible in production as it exposes critical application details.

Security Impact

Severity: Critical

  • Complete application structure exposure
  • Environment variables visible
  • Database queries revealed
  • File paths disclosed
  • Dependency information exposed

How to Fix

1. Disable Debug Mode

APP_DEBUG=false
APP_ENV=production

2. Clear Configuration Cache

php artisan config:clear
php artisan config:cache

3. Restrict Ignition in Production

// config/ignition.php
'enable_share_button' => env('APP_DEBUG', false),
'enable_runnable_solutions' => env('APP_DEBUG', false),

4. Remove from Production (Optional)

composer remove spatie/laravel-ignition --dev

Or conditional loading:

{
    "require-dev": {
        "spatie/laravel-ignition": "^2.0"
    }
}

Verification Steps

  1. Set APP_DEBUG=false
  2. Trigger an error
  3. Verify generic error page is shown
  4. Confirm no stack trace visible
  5. Check Ignition is not accessible

Related Issues

  • Laravel Debug Mode
  • Telescope Exposure
  • Exposed .env Files

Related Security Checks

Free security check

Is your Laravel app exposed right now?

34% of Laravel apps we scan have at least one critical issue. Most teams don't find out until something breaks. Our free scan checks your live application in under 60 seconds.

18% have debug mode on
72% missing security headers
12% have exposed .env
Scan My App Free No signup required. Results in 60 seconds.