have you created the symlink that makes storage/public appear as http://127.0.0.1/storage. ?
you then need to store the file in storage/public/images and not storage/images
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I write a code to upload photo, this is that:
// parameters
$name = 'image.jpg';
$fileName = $_FILES[0]['name'];
$path = '/image/';
// upload
request()->file("$name")->storeAs($path, $fileName);
Photo uploaded successfully but I don't have access to storage directory of my project with url, I test these urls and none of them is true:
http://127.0.0.1:8000/public/storage/image/image.jpg
http://127.0.0.1:8000/storage/image/image.jpg
http://127.0.0.1:8000/public/image/image.jpg
http://127.0.0.1:8000/image.jpg
http://127.0.0.1:8000/public/image.jpg
http://127.0.0.1:8000/storage/app/image/image.jpg
http://127.0.0.1:8000/storage/app/image/image.jpg
http://127.0.0.1:8000/app/image/image.jpg
http://127.0.0.1:8000/public/app/image/image.jpg
Also I set permission 777 for storage and storage/image directories and image files, but not work.
What should I do?
the link command creates a symbolic link from the url http://mysite.com/storage into the laravel_project/storage/public folder.
Therefore there is no point in putting images in laravel_project/storage/images because they will not be accessible to the outside world
Please or to participate in this conversation.