oneduo / nova-file-manager

The most advanced File Manager for Laravel Nova, feature rich and robust build.
https://oneduo.github.io/nova-file-manager/
MIT License
138 stars 38 forks source link

Issues with the file manager during record modification. #285

Closed felix1 closed 1 year ago

felix1 commented 1 year ago

When I try to modify a previously created record, I get this error:

update-fields?editing=true&editMode=update&viaResource=&viaResourceId=&viaRelationship=

{message: "Call to a member function map() on string", exception: "Error",…} Exception: "Error" File: "/path_project/vendor/oneduo/nova-file-manager/src/FileManager.php" Line: 180

mikaelpopowicz commented 1 year ago

Hi @felix1

Did you set the cast on your model? See https://oneduo.github.io/nova-file-manager/installation.html#casting-your-model-attributes