spatie/laravel-ignition
Beautiful, customizable error page for Laravel apps (Laravel 10+ / PHP 8.1+). Ignition improves exception debugging with context and solutions, and can share errors to Flare for production tracking and notifications via an API key.
App\Exceptions\Handler). Fits seamlessly into Laravel’s existing error-handling pipeline without requiring invasive architectural changes.APP_DEBUG).facade/ignition (v1.x) must be used instead.APP_ENV (e.g., detailed errors in local, minimal in production).config/ignition.php (e.g., show_ignition_in_production, enable_flare).App\Exceptions\Handler) but before any middleware that might suppress errors (e.g., TrustedProxyMiddleware). Order sensitivity is documented but not enforced by default.enable_flare: false) and use Ignition as a standalone error page.report_errors_locally).report_errors_locally is enabled in production.php artisan octane:start and Livewire components pre-integration.Authorization) and payloads. Custom redacting rules can be added via ignition.php.ignition.php could expose internal data in error pages. Review sensitive_headers and sensitive_payload_keys defaults.facade/ignition (v1.x) be used, or is a Laravel upgrade feasible?report_errors_locally) or only sent to Flare? Balance between debugging and operational overhead.APP_DEBUG=false or environment-specific config.app/Http/Kernel.php.php-json, php-mbstring (for Flare reporting). Most modern PHP stacks include these by default.facade/ignition.ignition.php or Blade overrides.composer require spatie/laravel-ignition
php artisan vendor:publish --provider="Spatie\Ignition\IgnitionServiceProvider"
config/ignition.php and Blade templates to resources/views/vendor/ignition.config/ignition.php:
'show_ignition_in_production' => env('IGNITION_SHOW_IN_PROD', false),
'enable_flare' => env('IGNITION_ENABLE_FLARE', false),
'flare_api_key' => env('FLARE_API_KEY'),
.env):
FLARE_API_KEY=your-key-here
IGNITION_SHOW_IN_PROD=false
1/0 in a route) to verify UI.APP_DEBUG=false and IGNITION_SHOW_IN_PROD=true (if enabled).resources/views/vendor/ignition.Ignition::registerSolution() in a service provider.livewire:discover and component errors.php artisan octane:start.report_errors_locally is enabled.$this->withExceptionHandling()).app/Http/Kernel.php:
protected $middleware = [
// ...
\Spatie\Ignition\Middleware\Ignition::class,
];
render() methods in App\Exceptions\Handler).composer require and publish config before enabling in production.APP_DEBUG=true).IGNITION_SHOW_IN_PROD=true and monitor error rates.enable_flare to avoid missing errors.facade/ignition (v1.x), update dependencies and test thoroughly.ignition.php or environment variables may diverge across environments.ignition:clear-solutions to reset customizations.How can I help you explore Laravel packages today?