Skip to content

Commit dd246d7

Browse files
authored
Added support for casts (#55124)
1 parent 6728659 commit dd246d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2021,7 +2021,7 @@ public function except($attributes)
20212021

20222022
foreach ($this->getAttributes() as $key => $value) {
20232023
if (! in_array($key, $attributes)) {
2024-
$results[$key] = $value;
2024+
$results[$key] = $this->getAttribute($key);
20252025
}
20262026
}
20272027

0 commit comments

Comments
 (0)