Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/quix-labs/laravel-pulse-graphql
- Owner: quix-labs
- License: mit
- Created: 2024-02-27T09:54:33.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-04T08:22:44.000Z (9 months ago)
- Last Synced: 2024-07-24T05:08:13.880Z (5 months ago)
- Topics: graphql, laravel, laravel-pulse
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# 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.