📜  laravel list 获取集合中的 x 数量 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:40.690000             🧑  作者: Mango

代码示例1
@foreach($comments->take(5) as $comment)
   

Name user: {{$comment->name}}

Comment: {{$comment->comment}}

@endforeach