Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.74 KB

README.md

File metadata and controls

38 lines (24 loc) · 1.74 KB

lighthouse-error-handler

Software License GitHub Tests Action Status Coverage Status PHPStan Latest Version on Packagist Total Downloads

Is not PRODUCTION READY.

Implement error handler like described here: https://blog.logrocket.com/handling-graphql-errors-like-a-champ-with-unions-and-interfaces/

It's still work in progress. So not production ready!

Requirements

Installation

1. Install using composer:

composer require jbernavaprah/lighthouse-error-handler

2. Publish configuration and schema

php artisan vendor:publish --tag=lighthouse-error-handler

That's it!

You will se every type new type covered by the default errors from Laravel/Lumen.