Support the ongoing development of Laravel.io →
posted 6 years ago
Last updated 2 years ago.
0

First, you have to store the images in the public directory

Then it depends what $post->image actually is. If it is a path relative to public you can do this:

<img src="{{ asset($post->image) }}" />
Or:

{{ HTML::image($post->image, '', array('class' => 'image')); }}

OR 
<img src="{{ asset('img/slide/' . $post->image) }}" />
Last updated 6 years ago.
0

@mauro lúcio :

You should try this:

if you store images in public folder (i.e yourproject/public/img/slide/test.jpg) then please update your code with below code.


<img src="{{$post->image}}" />

OR

<img src="{{url($post->image)}}" />
Last updated 6 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.