@@ -125,13 +125,13 @@ public function getActivityDescriptionForEvent($eventName)
125125The result of this function will be logged, unless the result is an empty string.
126126
127127### Using a before handler.
128- If you want to disable logging under certain conditions,
128+ If you want to disable logging under certain conditions,
129129such as for a specific user, create a class in your application
130- namespace that implements the ` Spatie\Activitylog\Handlers\BeforeHandlerInterface ` .
130+ namespace that implements the ` Spatie\Activitylog\Handlers\BeforeHandlerInterface ` .
131131
132132This interface defines an ` shouldLog() ` method in which you can code any custom logic to determine
133133whether logging should be ignored or not. You must return ` true ` the call should be logged.
134-
134+
135135To en the namespaced class nameto the ` beforeHandler ` field in the configuration file:
136136``` php
137137'beforeHandler' => '\App\Handlers\BeforeHandler',
@@ -151,7 +151,7 @@ class BeforeHandler implements BeforeHandlerInterface
151151 public function shouldLog($text, $userId)
152152 {
153153 if ($userId == 1) return false;
154-
154+
155155 return true;
156156 }
157157}
@@ -166,10 +166,6 @@ use Spatie\Activitylog\Models\Activity;
166166$latestActivities = Activity::with('user')->latest()->limit(100)->get();
167167```
168168
169- ## Contributing
170-
171- Please see [ CONTRIBUTING] ( CONTRIBUTING.md ) for details.
172-
173169### Cleaning up the log
174170
175171Over time your log will grow. To clean up the database table you can run this command:
0 commit comments