YaSh Chaudhary YaSh Chaudhary - 3 months ago 11
PHP Question

How to display only latest post in laravel 5.2 and that too without html <p> tag?

I want to display only latest post(or status) posted by the user. The problem is all the posts are displayed with a

tag. I am taking input in summernote editor.

What I am doing is:


I am outputting it in my view file as : {{$account->estado}}


this will get latest account and limit to certain no as you want, for example get latest 5 post.