Skip to content

Commit 74ad9bd

Browse files
authored
Update ActivityLogger.php (spatie#997)
adds `Conditionable` trait
1 parent 6691275 commit 74ad9bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ActivityLogger.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
use Illuminate\Support\Arr;
1010
use Illuminate\Support\Carbon;
1111
use Illuminate\Support\Str;
12+
use Illuminate\Support\Traits\Conditionable;
1213
use Illuminate\Support\Traits\Macroable;
1314
use Spatie\Activitylog\Contracts\Activity as ActivityContract;
1415

1516
class ActivityLogger
1617
{
17-
use Macroable;
18+
use Conditionable, Macroable;
1819

1920
protected ?string $defaultLogName = null;
2021

0 commit comments

Comments
 (0)