I saved my images in storage folder successfully.
my image path is below in storage folder "storage/app/".
Now i want to show image in views and also i want to download images there.
For showing image i write below code in views but image not show.
Please help me why image not show....
<img src="<?php echo asset('storage/'.$row->file_name.'/'); ?>" class="img-responsive" />
below my controller function.
public function store(Request $request)
{
$model = new FilesModel();
if($request->file('file_name'))
{
$filename = $request->file_name;
$files = $filename->getClientOriginalName();
Storage::disk('local')->put($files ,'centent');
$model->file_name = $files ;
}
$model->save();
return redirect('files');
}