首页调用热门问题的代码这样写怎么报错?哪里出问题了?
<div class="widget-box border-top">
<div class="job-list-item row">
<div class="col-md-6">
<h4 class="widget-box-title"><font color="#2a8c70">热门问题</font> <a href="{{ route('website.ask',['category_slug'=>'all','filter'=>'hottest']) }}" target="_blank" title="更多">»»</a> </h4>
<ul class="widget-links list-unstyled">
@foreach($hottestQuestions as $hotQuestion)
<li class="widget-links-item">
<a title="{{ $hotQuestion->title }}" target="_blank" href="{{ route('ask.question.detail',['id'=>$hotQuestion->id]) }}">{{ str_limit($hotQuestion->title,42) }}</a>
<small class="text-muted">{{ $hotQuestion->answers }} 回答</small>
</li>
@endforeach
</ul>
</div>
</div>
</div>