We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac9d61 commit 6917fbdCopy full SHA for 6917fbd
illuminate/Database/Eloquent/Concerns/HasAttributes.php
@@ -2121,8 +2121,8 @@ public function getDirty()
2121
{
2122
$dirty = [];
2123
2124
- foreach ($this->attributes as $key => $value) {
2125
- if (!$this->originalIsEquivalent($key)) { // will cast
+ foreach ($this->getAttributes() as $key => $value) {
+ if (!$this->originalIsEquivalent($key)) {
2126
$dirty[$key] = $value;
2127
}
2128
0 commit comments