I have an tag stored in the MySQL database that I want to get to my view in Laravel 5.1. The thing is I get it as an tag and not as the image itself.
view code:
@foreach ($get_followee_posts as $post)
<form action="/html/tags/html_form_tag_action.cfm" method="post">
<textarea name="post_section" id="post_section" style="width:96%;height:90px;background-color:white;color:black;border:none;padding:2%;font:22px/30px sans-serif;">
{!! $post->full_post !!} </textarea>
</textarea>
</form>
@endforeach
Controller Code:
$get_followee_posts= Post::whereIn('user_id',$followingNow->lists('id'))->get();
here's an exmaple post right for the db record (for example):
1st post!<img alt="heart" src="http://ift.tt/1pugvW8">
And here's a screenshot of the problem: (heart icon shown too large in the right. and good in the left side (before inserting a post). Also it returns tags and not an image).
I also user summernote for this foreach.If you have better alternative- I would like to hear about that.
Thank you.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire