nonanovi's avatar

Image Storage Laravel

im developing a single page website using laravel buat i have problem showing up images once i host it in server. i look up the answer on forums, some said that i need to create a storage link and linking my image into it. can someone elaborate because i dont really understand the step by step ?

*the image that i wanna show up isnt something that user upload but i upload it manually. i mean i dont use any function to upload and then generate it in controller.

0 likes
5 replies
MaverickChan's avatar

what is your server OS? if it is a linux system , you might need to change the permissions.

Snapey's avatar

just create a folder inside public then put the images there.

nonanovi's avatar

and this way dont work at the first place, my actual image folder is under public

mjedari's avatar
mjedari
Best Answer
Level 3

Do you load images through absolute path? like this:

<img src="{{ asset('your-image-directory-in-public/image.jpg')}}" />
Snapey's avatar

if images cannot be accessed as /images/imagename without using the asset helper then its probably a sign that your document root is not correct, and you can probably see public in your urls

1 like

Please or to participate in this conversation.