Skip to content

Commit

Permalink
Update manipulate-changes-array.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer authored Feb 29, 2024
1 parent c55f465 commit c0c368a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/advanced-usage/manipulate-changes-array.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ Then you can apply this when calling your model with:
YourModel::addLogChange(new YourPipe);
```

However, you may wish to ensure it's always called within the model and as such you could apply it on the model boot with the following:
However, you may wish to ensure it's always called within the model and as such you could apply it during model boot with the following:

```php
protected static function boot()
protected static function booted(): void
{
static::addLogChange( new YourPipe );
static::addLogChange(new YourPipe);
}
```

0 comments on commit c0c368a

Please sign in to comment.