laravel list get x amount in a collection
@foreach($comments->take(5) as $comment)
<p>Name user: {{$comment->name}}</p>
<p>Comment: {{$comment->comment}}</p>
@endforeach
Are there any code examples left?
New code examples in category PHP
@foreach($comments->take(5) as $comment)
<p>Name user: {{$comment->name}}</p>
<p>Comment: {{$comment->comment}}</p>
@endforeach