PHPackages                             abstem/rest-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. abstem/rest-handler

ActiveProject[HTTP &amp; Networking](/categories/http)

abstem/rest-handler
===================

A Laravel handler for custom exception on rest requests.

0.0.1(8y ago)027MITPHPPHP &gt;=7.0

Since Nov 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Abstem/RestHandler)[ Packagist](https://packagist.org/packages/abstem/rest-handler)[ RSS](/packages/abstem-rest-handler/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

RestHandler
===========

[](#resthandler)

### Laravel Exception Handler For Rest Requests

[](#laravel-exception-handler-for-rest-requests)

If you need to render json responses in case of custom exceptions this is the perfect library for it.

Instalation
-----------

[](#instalation)

```
$ composer require abstem/rest-handler
```

Next, update the exception handler base class on the App/Exceptions/Handler.php from

```
