Skip to content

Commit a3866f6

Browse files
[8.x] Revert "[8.x] Fix attributes returning a collection instead of an array" (#666)
1 parent 9f21756 commit a3866f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/CP/Traits/ExtractsFromModelFields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protected function extractFromFields(Model $model, Resource $resource, Blueprint
1717
$fields = $blueprint
1818
->fields()
1919
->setParent($model)
20-
->addValues($values->toArray())
20+
->addValues($values->all())
2121
->preProcess();
2222

2323
$values = $fields->values()->merge([

0 commit comments

Comments
 (0)