Skip to content

Commit

Permalink
add withoutLogs to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Mar 13, 2020
1 parent 9af498a commit 1084c25
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/advanced-usage/disabling-logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,15 @@ activity()->disableLogging();
```

If you want to enable logging again call `activity()->enableLogging()`.

## without Logs

If you want to run a given code snippet without logs you can use the `withoutLogs()` method.

```php
activity()->withoutLogs(function(){
// ...
});
```

Everything that would produce an activitylog (model events, explicit calls) won't save an activity.

0 comments on commit 1084c25

Please sign in to comment.