Skip to content

Commit

Permalink
[8.x] Document hydrations option in Telescope model watcher (#6666)
Browse files Browse the repository at this point in the history
* [8.x] Document hydrations option in Telescope model watcher

* delete empty line

* Update telescope.md

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
paras-malhotra and taylorotwell authored Dec 15, 2020
1 parent 4924a65 commit df2075c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions telescope.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,17 @@ The model watcher records model changes whenever an Eloquent [model event](/docs
...
],

If you would like to record the number of models hydrated during a given request, enable the `hydrations` option:

'watchers' => [
Watchers\ModelWatcher::class => [
'enabled' => env('TELESCOPE_MODEL_WATCHER', true),
'events' => ['eloquent.created*', 'eloquent.updated*'],
'hydrations' => true,
],
...
],

<a name="notification-watcher"></a>
### Notification Watcher

Expand Down

0 comments on commit df2075c

Please sign in to comment.