Skip to content

Commit e7db3dd

Browse files
author
Dennis Oderwald
committed
[5.2] Use toArray() for Model Object Value
1 parent 5a8f138 commit e7db3dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FormBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ protected function getModelValueAttribute($name)
11071107
return $this->model->getFormValue($name);
11081108
}
11091109

1110-
return data_get($this->model, $this->transformKey($name));
1110+
return data_get($this->model->toArray(), $this->transformKey($name));
11111111
}
11121112

11131113
/**

0 commit comments

Comments
 (0)