New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

bbs-lab/lighthouse-persisted-queries

Laravel Lighthouse middleware to handle GraphQL persisted queries
4,524 1
Install
composer require bbs-lab/lighthouse-persisted-queries
Latest Version:v1.0.0
PHP:^7.4|^8.0
Laravel:7 · 8 · 9
License:MIT
Last Updated:Feb 21, 2022
Links: GitHub  ·  Packagist
Maintainer: Kezho

Lighthouse persisted queries middleware

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require bbls-lab/lighthouse-persisted-queries

You can publish the config file with:

php artisan vendor:publish --provider="BBSLab\LighthousePersistedQueries\LighthousePersistedQueriesServiceProvider" --tag="lighthouse-persisted-queries-config"

This is the contents of the published config file:

return [
    'cache' => [

        'prefix' => env('LPQ_CACHE_PREFIX', 'persisted_query'),

        'ttl' => env('LPQ_CACHE_TTL', 0),

        'max-age' => env('LPQ_CACHE_MAX_AGE', 86400),

    ],

    'excluded_operations' => [
        //
    ],

];

Usage

To handle persisted queries you add the BBSLab\LighthousePersistedQueries\PersistsQuery middleware to the lighthouse middleware configuration section.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

651,963,193 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

435,097,283 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

Version History

Version Released PHP Laravel License
v1.0.0 ^7.4|^8.0 ^7.0|^8.0|^9.0 MIT
v0.1.0 ^7.4|^8.0 ^7.0|^8.0 MIT