Skip to content

Commit 3e8baf5

Browse files
authored
Fix asJson call (#55017)
1 parent c596d64 commit 3e8baf5

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
@@ -1180,7 +1180,7 @@ public function fillJsonAttribute($key, $value)
11801180

11811181
$value = $this->asJson($this->getArrayAttributeWithValue(
11821182
$path, $key, $value
1183-
), $this->hasCast($key, ['json:unicode']));
1183+
), $this->getJsonCastFlags($key));
11841184

11851185
$this->attributes[$key] = $this->isEncryptedCastable($key)
11861186
? $this->castAttributeAsEncryptedString($key, $value)

0 commit comments

Comments
 (0)