Closed AlizHarb closed 1 year ago
There is too little information to be able to reproduce the error you encountered.
I'm using Attachable trait and relation for uploading images, everything works very well but i can not get the images to display when i want to edit the city
Name of the Upload::make('attachment')
field?
Name of the
Upload::make('attachment')
field?
Upload::make('city.image')
->title('City Image')
->maxFiles(1)
->groups('cities')
->acceptedFiles('image/*')
->media(),
The naming should match what is stored with the model:
Input::name('city.name')
// value equivalent to
$city->name
You can learn more at https://orchid.software/en/docs/screens/
The naming should match what is stored with the model:
Input::name('city.name') // value equivalent to $city->name
You can learn more at https://orchid.software/en/docs/screens/
ok i got that point, as you see in the screenshot that all inputs returned the values, i just want to return the images as well, i have tried to use attachment like that
Upload::make('attachment')
but did not work :(
We have the key of the city.*
Upload::make('city.attachment')
We have the key of the
city.*
Upload::make('city.attachment')
Thank you, now it works but the image is not displaying but it exists in the directory, also the media is empty
Hello I'm using upload for images with the relation, everything works fine until i want to edit. Images not being display back under the upload input
here is my query