[英]View doesn't show the image on storage in Laravel
I'm trying to show all images on my storage/app/livros folder on a view with this code below, but I get this我正在尝试使用下面的代码在视图中显示我的 storage/app/livros 文件夹中的所有图像,但我得到了这个
.
. How can I show these images?
我怎样才能显示这些图像?
@extends('layouts.app_cad_livros')
@section('content')
<div class="textocs">
<br>
<h3>LIVROS</h3>
</div>
<div class="card_livro">
@foreach($livro as $mostra)
{{$mostra->users_id}}
<img src="{{ url("storage/app/livros{$mostra->image}") }}"
style="max-width=100px;">
TÍTULO {{$mostra->namel}}<br>
AUTOR {{$mostra->autor}}<br>
EDITORA {{$mostra->editora}}<br>
CATEGORIA {{$mostra->categoria}}<br>
CLASSIFICAÇÃO {{$mostra->classificação}}<br>
DESCRIÇÃO {{$mostra->descricao}}<br>
CAPA {{$mostra->image}}<br>
@endforeach
</div>
<a href="{{ url('/alugar', $mostra->users_id)}}">
<button class="btn btn-primary">quero alugar</button>
</a>
@endsection
this is the这是
<img src="{{ url("storage/{$mostra->image}") }}" style="max-width=100px;">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.