'array', 'new_values' => 'array', ]; public function user() { return $this->belongsTo(User::class); } /** * Get the auditable model (polymorphic-like relationship using model_type/model_id). */ public function subject() { if ($this->model_type && class_exists($this->model_type)) { return $this->morphTo(null, 'model_type', 'model_id'); } return null; } }