Laravel Telescope 隐藏 Nova 请求

Laravel Telescope hide Nova requests

如何为所有与 Nova 相关的东西禁用 Telescope?在 Nova 中点击几下,我的整个 Telescope 就充满了他们的请求。我不关心 Nova-requests,但不知道如何禁用注册这些请求。

您是否看过 telescope 文档,其中有一个门观察器似乎排除了 viewNova 门作为示例,这可能有助于清除一些查询。

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:

'watchers' => [
    Watchers\GateWatcher::class => [
        'enabled' => env('TELESCOPE_GATE_WATCHER', true),
        'ignore_abilities' => ['viewNova'],
    ],
    ...
],

https://laravel.com/docs/6.x/telescope#gate-watcher