Installation
First you need to require thenuwave/lighthouse
package in yourcomposer.json
file
"require": {
"nuwave/lighthouse": "0.9.*"
}
Or you can use the composer require
command from your terminal
$ composer require nuwave/lighthouse
Add the service provider to your config/app.php
file
Nuwave\Lighthouse\LaravelServiceProvider::class,
Add the GraphQL facade to your config/app.php
file
'GraphQL' => Nuwave\Lighthouse\Support\Facades\GraphQLFacade::class,
Publish the package
$ php artisan vendor:publish --provider="Nuwave\Lighthouse\LaravelServiceProvider"