Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/quix-labs/laravel-pulse-graphql

Track GraphQL queries usage and execution time with Laravel Pulse
https://github.com/quix-labs/laravel-pulse-graphql

graphql laravel laravel-pulse

Last synced: about 2 months ago
JSON representation

Track GraphQL queries usage and execution time with Laravel Pulse

Awesome Lists containing this project

README

        

GraphQL tracking for Laravel Pulse

# GraphQL requests in Laravel Pulse

[![Latest Version on Packagist](https://img.shields.io/packagist/v/quix-labs/laravel-pulse-graphql.svg?style=flat-square)](https://packagist.org/packages/quix-labs/laravel-pulse-graphql)
[![Total Downloads](https://img.shields.io/packagist/dt/quix-labs/laravel-pulse-graphql.svg?style=flat-square)](https://packagist.org/packages/quix-labs/laravel-pulse-graphql)

___
This package allow your to track all your GraphQL queries and mutations with rebing/graphql-laravel
___

## Installation

You can install the package via composer:

```bash
composer require quix-labs/laravel-pulse-graphql
```

## Register the recorder

Add the `GraphqlRecorder` inside `config/pulse.php`.

(If you don\'t have this file make sure you have published the config file of Larave Pulse using `php artisan vendor:publish --tag=pulse-config`)

```php
return [
// ...

'recorders' => [
// Existing recorders...

\QuixLabs\LaravelPulseGraphql\Recorders\GraphqlRecorder::class => [],
]
]
```

## Add to your dashboard

To add the card to the Pulse dashboard, you must first [publish the vendor view](https://laravel.com/docs/10.x/pulse#dashboard-customization).

```bash
php artisan vendor:publish --tag=pulse-dashboard
```

Then, you can modify the `dashboard.blade.php` file and add the requests-graph livewire template:

```php

```

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.