myvideogamelist.com/app/Core/Traits/SpatieLogsActivity.php
Jimmy Brancaccio b39ecf1638 Initial Commit
The initial public commit of MVGL website code.
2024-01-14 13:51:43 -06:00

20 lines
372 B
PHP

<?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;
}
}