Skip to content

Commit 9a6a3d5

Browse files
kailumworkhouseKailum
andauthored
[8.x] Fix attributes returning a collection instead of an array (#654)
Co-authored-by: Kailum <kailum.bull@workhouseadvertising.com.au>
1 parent bc9ca2d commit 9a6a3d5

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->all())
20+
->addValues($values->toArray())
2121
->preProcess();
2222

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

0 commit comments

Comments
 (0)