Skip to content

Commit

Permalink
Improve Eloquent driver support #34
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnathonKoster committed Jun 29, 2024
1 parent ed2c717 commit af96e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Processors/Concerns/GetsFieldValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit af96e50

Please sign in to comment.