**@foreach($posts as $post)**
<div class="card">
<img class="card-img-top" src="..." alt="Card image cap">
<div class="card-body">
<h5 class="card-title">**{{$post->title}}**</h5>
<p class="card-text">**{{$post->description}}**</p>
<p class="card-text">**{{$post->price}}**</p>
</div>
</div>
**@endforeach**
I want to create 4 inline cards to display all post (4 cards on each line).
I tried to put the past code in
<div class="card-group">
**here**
</div>
but the result is many cards on the same line.
What's the best way to create a known number of cards (4) on each line using bootstrap and laravel @foreach?