我正在使用 Laravel,在显示数据库中存储的图像时,图像不显示:
$post -> image has posts/1lSBv7Ana8Lonj9Au37IrujjnnEaYgzNWyamch33.jpeg as image location, still image doesn't show up.
index.blade.php
<tbody>
@foreach ($posts as $post)
<tr>
<td>
<img src="{{$post->image}}" width="60px" height="60px" alt="image">
</td>
<td>{{$post->title}} </td>
</tr>
@endforeach
</tbody>
和 PostsController 作为
public function index()
{
return \view('posts.index')->with('posts', Post::all());
}
潇湘沐
四季花海
UYOU
繁花如伊