Level 51
Jun 25, 2017
3
Level 2
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
Please or to participate in this conversation.