Laravel 5.2如何渲染变量,如{{$ post-> reply-> render}}

时间:2017-05-24 12:06:18

标签: php laravel-5

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

如何在这种情况下为回复变量分页视图

1 个答案:

答案 0 :(得分:0)

尝试

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