Skip to content

Commit 3133ae2

Browse files
authored
Merge pull request #4817 from paras-malhotra/gate_watcher
[5.7] Document Telescope gate watcher
2 parents 1085877 + edbaaf2 commit 3133ae2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

telescope.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- [Dump Watcher](#dump-watcher)
1515
- [Event Watcher](#event-watcher)
1616
- [Exception Watcher](#exception-watcher)
17+
- [Gate Watcher](#gate-watcher)
1718
- [Job Watcher](#job-watcher)
1819
- [Log Watcher](#log-watcher)
1920
- [Mail Watcher](#mail-watcher)
@@ -230,6 +231,19 @@ The event watcher records the payload, listeners, and broadcast data for any eve
230231

231232
The exception watcher records the data and stack trace for any reportable Exceptions that are thrown by your application.
232233

234+
<a name="gate-watcher"></a>
235+
### Gate Watcher
236+
237+
The gate watcher records the data and result of gate and policy checks by your application. If you would like to exclude certain abilities from being recorded by the watcher, you may specify those in the `ignore_abilities` option in your `config/telescope.php` file:
238+
239+
'watchers' => [
240+
Watchers\GateWatcher::class => [
241+
'enabled' => env('TELESCOPE_GATE_WATCHER', true),
242+
'ignore_abilities' => ['viewNova'],
243+
],
244+
...
245+
],
246+
233247
<a name="job-watcher"></a>
234248
### Job Watcher
235249

0 commit comments

Comments
 (0)