imemento / exceptions-laravel
HTTP Exceptions Handler for Laravel
12.0.0
2026-02-19 09:18 UTC
Requires
- php: ^8.2
- laravel/framework: ^12.0
Requires (Dev)
- orchestra/testbench: ^10.0
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2026-02-19 09:20:30 UTC
README
This is a custom exception handler that must be registered with Laravel.
Install
composer require imemento/exceptions-laravel
Add the service to config/app.php:
iMemento\Exceptions\Laravel\ExceptionsServiceProvider::class,
The exception to formatter mapping is done in the config/exceptions.php file.
Publish it if you want to add your custom mapping:
php artisan vendor:publish --tag=config
Replace the exception handler in bootstrap/app.php
$app->singleton( Illuminate\Contracts\Debug\ExceptionHandler::class, iMemento\Exceptions\Laravel\ExceptionHandler::class );