From af96e50e0b618ff1d8eca6562662409e9d99b2f6 Mon Sep 17 00:00:00 2001 From: John Koster Date: Sat, 29 Jun 2024 14:04:29 -0500 Subject: [PATCH] Improve Eloquent driver support #34 --- src/Processors/Concerns/GetsFieldValues.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Processors/Concerns/GetsFieldValues.php b/src/Processors/Concerns/GetsFieldValues.php index a716d0d..61db9ea 100644 --- a/src/Processors/Concerns/GetsFieldValues.php +++ b/src/Processors/Concerns/GetsFieldValues.php @@ -16,7 +16,7 @@ protected function getPristineValue($fieldName, $entry, $default = null) } if ($entry instanceof Model) { - return $entry->getOriginal($fieldName) ?? $default; + return $entry[$fieldName] ?? $default; } return $this->getFieldValue($fieldName, $entry, $default);