There may be 5 or 6 values inside the foreach loop but i need to print suppose first 5 or 6 values.How do i do that?
<div class="tag-area">
@foreach(explode(',',$product->tags) as $tag)
<span>{{$tag}}</span>
@endforeach
</div>