@foreach($articles as $article)@if($source_type === 'article' && $comment->user_id === $article->user_id) <span class="label-xs label-success">作者</span>@endif@endforeach
已经搞定了,原来直接调用就可以