Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah authored Jan 24, 2020
1 parent 4ecabe7 commit 67e7ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function create(Request $request)
}
```

(Optional) Use the `JsendExceptionFormatter` trait in `App\Exceptions\Handler` to send JSend-compliant responses for generic and validation errors if a request expects JSON:
You can also add the `JsendExceptionFormatter` trait in `App\Exceptions\Handler` to format JSON responses for unhandled exceptions and Laravel validation errors as JSend:
```php
class Handler extends ExceptionHandler
{
Expand Down

0 comments on commit 67e7ac5

Please sign in to comment.