@foreach($posts as $k=>$v)
<div class="blog-post">
<h2 class="blog-post-title"><a href="/posts/62" >{{$v->title}}</a></h2>
<p class="blog-post-meta">{{$v->created_at->toFormattedDateString()}} <a href="/user/{{$v->id}}}"></a></p>
<p>{{$v->content}}
<p class="blog-post-meta">赞 0 | 评论 0</p>
</div>
@endforeach
//此函数可以转换为May 13, 2019