diff --git a/app/Models/BackupDestination.php b/app/Models/BackupDestination.php index 0138f928..70b65b50 100644 --- a/app/Models/BackupDestination.php +++ b/app/Models/BackupDestination.php @@ -41,6 +41,17 @@ class BackupDestination extends Model protected $guarded = []; + /** + * Define the model values that shouldn't be audited. + * + * @var string[] + */ + protected array $excludedFromAuditing = [ + 'status', + 'created_at', + 'updated_at', + ]; + /** * Get the user that owns the backup destination. * diff --git a/app/Models/BackupTask.php b/app/Models/BackupTask.php index 2678ff30..663ba018 100644 --- a/app/Models/BackupTask.php +++ b/app/Models/BackupTask.php @@ -59,6 +59,17 @@ class BackupTask extends Model protected $guarded = []; + /** + * Define the model values that shouldn't be audited. + * + * @var string[] + */ + protected array $excludedFromAuditing = [ + 'status', + 'created_at', + 'updated_at', + ]; + /** * Get the count of tasks per month for the last six months for a given user. * diff --git a/app/Models/RemoteServer.php b/app/Models/RemoteServer.php index 52deb06d..0de04b8c 100644 --- a/app/Models/RemoteServer.php +++ b/app/Models/RemoteServer.php @@ -41,6 +41,17 @@ class RemoteServer extends Model */ public $guarded = []; + /** + * Define the model values that shouldn't be audited. + * + * @var string[] + */ + protected array $excludedFromAuditing = [ + 'connectivity_status', + 'created_at', + 'updated_at', + ]; + /** * Get the user that owns the remote server. * diff --git a/app/Models/User.php b/app/Models/User.php index bb38cf1c..5b49b248 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -60,6 +60,18 @@ class User extends Authenticatable implements TwoFactorAuthenticatable 'remember_token', ]; + /** + * Define the model values that shouldn't be audited. + * + * @var string[] + */ + protected array $excludedFromAuditing = [ + 'quiet_until', + 'last_two_factor_at', + 'created_at', + 'updated_at', + ]; + /** * Get the user's remote servers. *