Skip to content

Commit bfafdfe

Browse files
committed
get rawValue in value cast
1 parent 1e76efa commit bfafdfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Models/AbstractAttribute.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ protected function rawValue(): Attribute
5151
protected function value(): Attribute
5252
{
5353
return Attribute::get(function ($value) {
54+
$value = $this->rawValue ?? $value;
5455
if ($this->frontend_input === 'select' || $this->frontend_input === 'multiselect') {
5556
if (is_iterable($value)) {
5657
return Arr::map(

0 commit comments

Comments
 (0)