Throw consistent error exceptions in an API.

v0.1-alpha.3 2018-09-27 01:53 UTC

This package is not auto-updated.

Last update: 2024-04-28 03:20:09 UTC


README

Return API Errors consistently throughout an application. Allow users to customize their response messages.

Setup

Lumen

In order to use this plugin you must include the following in your app file: $app->register(Error\ErrorServiceProvider::class);

Also, replace the default error handler with:

$app->singleton( Illuminate\Contracts\Debug\ExceptionHandler::class, Error\Exceptions\Handler::class );

To create a customizable config file: php artisan error:config