خرید بک لینک

Vote count: 0

I am using Laravel 5.3, My question is:
How to exclude an item when using foreach in Laravel ?

For example,
a user has some artiles,in article detail page:

<p>Article detail:</p>
<h2>{{$article->title}}</h2>
<p>{{$article->content}}</p>

<h4>The other articles of this user:</h4>
@foreach ($articles as $article)
<p>{{$article->title}}</p>
@endforeach

Question:
In foreach,how to exclude the article that has been shown above?

asked 11 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 19 مرداد 1395 ساعت: 1:32

صفحه بندی