arctushar's avatar

image uploaded but cant show

Hi I have uploaded file with below code in controller

$path = $request->photo->store('images');

file stored in storage\app\images

but when I tried to show in blade by below code

<img src="/storage/app/images/2HAhjryDB7PeaEM6HLUyfK1rKg3duxALI7iJLPcO.jpeg" alt="...">

not showing the image When I paste in the browser url

http://localhost/storage/app/images/2HAhjryDB7PeaEM6HLUyfK1rKg3duxALI7iJLPcO.jpeg

Image is not showing but when I delete .htaccess then for browser url, image is showing.

How can I show images from storage in 5.4. I want to store image name in database, then want to show the image in views from storage. plz help

0 likes
3 replies
spekkionu's avatar

There is an artisan command for creating the symbolic link to the public files.

php artisan storage:link

Please or to participate in this conversation.