File tree Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 1
- # laravel-pulse-graphql
1
+
2
+ <p align =" center " ><img src =" ./screenshot.png " alt =" GraphQL tracking for Laravel Pulse " ></p >
3
+
4
+ # GraphQL requests in Laravel Pulse
5
+ This package allow your to track all your GraphQL queries and mutations with rebing/graphql-laravel
6
+
7
+
8
+ ## Installation
9
+
10
+ You can install the package via composer:
11
+
12
+ ``` bash
13
+ composer require alancolant/laravel-pulse-graphql
14
+ ```
15
+
16
+
17
+ ## Register the recorder
18
+
19
+ Add the ` GraphqlRecorder ` inside ` config/pulse.php ` .
20
+
21
+ (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 ` )
22
+
23
+ ``` php
24
+ return [
25
+ // ...
26
+
27
+ 'recorders' => [
28
+ // Existing recorders...
29
+
30
+ \Alancolant\PulseGraphql\Recorders\GraphqlRecorder::class => [],
31
+ ]
32
+ ]
33
+ ```
34
+
35
+ ## Add to your dashboard
36
+
37
+ To add the card to the Pulse dashboard, you must first [ publish the vendor view] ( https://laravel.com/docs/10.x/pulse#dashboard-customization ) .
38
+
39
+ ``` bash
40
+ php artisan vendor:publish --tag=pulse-dashboard
41
+ ```
42
+
43
+ Then, you can modify the ` dashboard.blade.php ` file and add the requests-graph livewire template:
44
+
45
+ ``` php
46
+ <livewire:pulse .graphql cols =" 6" />
47
+ ```
You can’t perform that action at this time.
0 commit comments