myvideogamelist.com/app/Core/Traits/SpatieLogsActivity.php

21 lines
372 B
PHP
Raw Normal View History

<?php
namespace App\Core\Traits;
use Spatie\Activitylog\LogOptions;
use Spatie\Activitylog\Traits\LogsActivity;
trait SpatieLogsActivity
{
use LogsActivity;
public function getActivitylogOptions(): LogOptions
{
$logOptions = new LogOptions();
$logOptions->logAll();
$logOptions->logOnlyDirty();
return $logOptions;
}
}