Skip to content
This repository was archived by the owner on Jun 1, 2019. It is now read-only.

Commit 6694333

Browse files
Merge pull request #37 from mul14/patch-1
Remove double Contributing info
2 parents b734982 + 825370c commit 6694333

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ public function getActivityDescriptionForEvent($eventName)
125125
The 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,
129129
such 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

132132
This interface defines an `shouldLog()` method in which you can code any custom logic to determine
133133
whether logging should be ignored or not. You must return `true` the call should be logged.
134-
134+
135135
To 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

175171
Over time your log will grow. To clean up the database table you can run this command:

0 commit comments

Comments
 (0)