Upload::make with orchid CRUD #1933
Unanswered
gaetandezeiraud
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am very new to orchid (and laravel in general). I have a problem with an Upload form element. I have following the documentation here https://orchid.software/en/docs/field/#upload so:
Migration:
Model:
Resource:
But I don't understand why, when I tried to create a new product with images attached. I get the following error:
Without, it is working and create the product. And after I can add images without errors. But, when I try to edit later, the Upload is not pre-fulled with lasted images (uploaded earlier). And when I try to call the
photos
function (inside the model) like the following:I get this:
I think I have something wrong. But I can't seem to find
Beta Was this translation helpful? Give feedback.
All reactions