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?
