Uploading images and show in front-end with Laravel 5.4

I am using Laravel 5.4. I want to upload images with my blog.So I have uploaded images in storage/app/public/upload folder like this.$request->file('file')->storeAs('upload', $fileName);...

I am using Laravel 5.4. I want to upload images with my blog. So I have uploaded images in storage/app/public/upload folder like this.

$request->file('file')->storeAs('upload', $fileName);

It is uploading images correctly. But my problem in displaying images in front end with blog.

I want to show image like below

<img src="{{asset('storage/app/public/upload/'.$imagename)}}" />  

It's add image path http://127.0.0.1:3000/storage/app/public/upload/man.png

But still image is not visible.

Try this

$path = storage_path();
<img src="{{asset($path .'app/public/upload/'.$imagename)}}" />

For more Info please read: https://laravel.com/docs/5.4/helpers#method-storage-path

Translating... 0%