douliao8318
douliao8318
2017-05-24 12:06
浏览 75
已采纳

Laravel 5.2如何渲染像{{$ post-> reply-> render}}这样的变量

@foreach($post->reply as $replies)
   //code .....
@endforeach

how do I paginate the views for replies variable in this case

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • duanou9739
    duanou9739 2017-05-24 18:50
    已采纳

    try

    @foreach($post->reply()->paginagte() as $replies)
        //code .....
    @endforeach
    
    点赞 评论

相关推荐