YaSh Chaudhary YaSh Chaudhary - 1 year ago 82
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}}

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download