refactor: 🔥 Remove activtiylog from payment model -> no spam
This commit is contained in:
parent
b72d142a81
commit
f00a11da0e
1 changed files with 1 additions and 10 deletions
|
@ -7,20 +7,11 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use NumberFormatter;
|
||||
use Spatie\Activitylog\LogOptions;
|
||||
use Spatie\Activitylog\Traits\LogsActivity;
|
||||
|
||||
class Payment extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use LogsActivity;
|
||||
public function getActivitylogOptions(): LogOptions
|
||||
{
|
||||
return LogOptions::defaults()
|
||||
-> logOnlyDirty()
|
||||
-> logOnly(['*'])
|
||||
-> dontSubmitEmptyLogs();
|
||||
}
|
||||
|
||||
public $incrementing = false;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue