Skip to content

A laravel package for structing API exception response in JSON followed http://jsonapi.org/

Notifications You must be signed in to change notification settings

tientn/laravel-jer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Json Exception Response

Latest Stable Version Build Status Coverage Status Total Downloads License

A laravel package for structing API exception response in JSON followed http://jsonapi.org/.

Install

Via Composer

$ composer require laravel-soft/jer

Once this has finished, you will need to add the service provider to the providers array in your config/app.php as follows:

'providers' => [
    // ...
    LaravelSoft\JER\JERServiceProvider::class,
]

Then, publish the localization by running:

php artisan vendor:publish

Usage

In the app\Exceptions\Handler.php, let the class extends LaravelSoft\JER\ExceptionHandler.

use LaravelSoft\JER\ExceptionHandler;

class Handler extends ExceptionHandler
{
  // ...
}

License

The MIT License (MIT).

About

A laravel package for structing API exception response in JSON followed http://jsonapi.org/

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages