Infolist ImageEntry question
Hi Guys,
I am able to save the file to the local disc in my create form:
And I can see the uploaded file in this folder: /storage/app/public/ and this is working well.
However, I have a question regarding the infolist ImageEntry which I want to use to display said image.
According to the docs:
The entry must contain the path to the image, relative to the root directory of its storage disk, or an absolute URL to it.
So in order to test this, I have ensured that there are 2 images in the public disc: sushi.jpg and test.jpg
I have tried the following ways to display an image:
I can understand if the formatting is wrong for the rest of these configs, but surely the absolute path ImageEntry should work?
I cannot see any relevant information in the laravel log either, anyone have any idea what I am doing wrong here?
Thanks in advance
3 Replies
Solution
in the make you provide a db column
::make()
takes the name of the columns as an argument. Not the actual image path. So in your case that would be ::make('attachments')
Thank you so much guys, I really appreciate the answers!
I came right with the changes you suggested.
Hope you both have a fantastic weekend!