Filesystems 存储目录映像在视图中显示,并在laravel 5.3中下载

Filesystems 存储目录映像在视图中显示,并在laravel 5.3中下载,filesystems,laravel-5.3,Filesystems,Laravel 5.3,我成功地将图像保存在存储文件夹中。 我的图像路径位于存储文件夹“storage/app/”的下方。 现在,我想在视图中显示图像,并在那里下载图像。 为了显示图像,我在视图中编写了下面的代码,但没有显示图像。 请帮助我为什么图像不显示 <img src="<?php echo asset('storage/'.$row->file_name.'/'); ?>" class="img-responsive" /> 您正在使用asset()helper函数检索保存在

我成功地将图像保存在存储文件夹中。 我的图像路径位于存储文件夹“storage/app/”的下方。 现在,我想在视图中显示图像,并在那里下载图像。
为了显示图像,我在视图中编写了下面的代码,但没有显示图像。 请帮助我为什么图像不显示

 <img src="<?php echo asset('storage/'.$row->file_name.'/'); ?>"  class="img-responsive" />
您正在使用
asset()
helper函数检索保存在
storage
目录中的文件。 通常
asset()
函数指向您的公共目录,因此在本例中,它在
public/storage/app/file.ext
中查找您的文件。我建议您将
asset()
更改为
storage\u path()
,然后您可以访问以下图像:

<img src="<?php echo storage_path('app/'.$row->file_name.'/'); ?>"  class="img-responsive" />
文件名。'/');?>“class=”img responsive“/>

replice of可能的重复您能试用inspect元素并告诉我img src是什么样子吗?连续三天我搜索解决方案,但我的问题仍然没有解决请告诉我问题是什么
<img src="<?php echo storage_path('app/'.$row->file_name.'/'); ?>"  class="img-responsive" />