Skip to content

mementohub/exceptions-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages