Permalink
Browse files

commit

  • Loading branch information...
freekmurze committed Nov 7, 2017
1 parent 0bd2b36 commit 7079f46b663cd034f5493c0903a1396d77ada204
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/CleanActivitylogCommand.php
@@ -4,6 +4,7 @@
use Carbon\Carbon;
use Illuminate\Console\Command;
use Illuminate\Database\Eloquent\Builder;
class CleanActivitylogCommand extends Command
{
@@ -35,7 +36,7 @@ public function handle()
$activity = ActivitylogServiceProvider::getActivityModelInstance();
$amountDeleted = $activity::where('created_at', '<', $cutOffDate)
->when($log !== null, function ($query) use ($log) {
->when($log !== null, function (Builder $query) use ($log) {
$query->inLog($log);
})
->delete();

0 comments on commit 7079f46

Please sign in to comment.