Documentation
Integrations and Guides
Lighthouse (Laravel)

Lighthouse (Laravel)

Installation

composer require stayallive/lighthouse-graphql-hive

Publishing Schemas

Please use the Hive CLI to publish your GraphQL schema. Follow the CI/CD instructions for automating the process.

Usage Reporting

Add the following snippet to your config/services.php file:

    'graphqlhive' => [
        'enabled'   => env('GRAPHQL_HIVE_ENABLED', false),
        'token'     => env('GRAPHQL_HIVE_TOKEN'),
        'submitter' => env('GRAPHQL_HIVE_SUBMITTER'),
        'queue'     => env('GRAPHQL_HIVE_QUEUE'),
    ],

In your .env configure at least the following:

GRAPHQL_HIVE_ENABLED=true
GRAPHQL_HIVE_TOKEN=<your Hive access token>

Additional Resources