hasMany(ConnectedApp::class); } public function getActivitylogOptions(): LogOptions { return LogOptions::defaults() ->logFillable() // Log all fillable attributes ->logOnlyDirty() // Log only attributes that actually changed ->dontLogIfAttributesChangedOnly(['updated_at']) // Skip if only updated_at changed ->dontLogEmptyChanges() // Prevent saving logs with no changed attributes ->setDescriptionForEvent(fn ( string $eventName ) => ":causer.name {$eventName} connection provider ':subject.name'"); } }