PHP code example of bbs-lab / lighthouse-persisted-queries

1. Go to this page and download the library: Download bbs-lab/lighthouse-persisted-queries library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bbs-lab / lighthouse-persisted-queries example snippets


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' => [
        //
    ],

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