LaravelPackages.net
Acme Inc.
Toggle sidebar
imemento/exceptions-laravel

HTTP Exceptions Handler for Laravel

2.937
0
12.0.0
About imemento/exceptions-laravel

imemento/exceptions-laravel is a Laravel package for http exceptions handler for laravel. It currently has 0 GitHub stars and 2.937 downloads on Packagist (latest version 12.0.0). Install it with composer require imemento/exceptions-laravel. Discover more Laravel packages by imemento or browse all Laravel packages to compare alternatives.

Last updated

iMemento Exception Handler for Laravel

Build Status Latest Stable Version License Total Downloads

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
);

Star History Chart