2 回答

TA貢獻(xiàn)1877條經(jīng)驗(yàn) 獲得超1個(gè)贊
經(jīng)過(guò)幾次研究,我修復(fù)了它。這是答案:
@php $receives = \App\Fund::whereIn('id', $receive)->get(); @endphp
@foreach($receives as $r)
<a href="/multi" class="list-group-item">
<p>
<img src="{{ $r->image_url }}" width="32px" height="32px"> {{ $r->title }}
<span class="pull-right text text-muted hidden-xs hidden-sm" style="font-size:11px;">
<small>Reserve: {{ $r->available }}<br>Exchange rate: {{ $r->buyrate }}</small>
</span>
</p>
</a>
@endforeach

TA貢獻(xiàn)1824條經(jīng)驗(yàn) 獲得超8個(gè)贊
嘗試使用標(biāo)簽而不是括號(hào)就像我在下一個(gè)例子中所做的那樣;
<img src="<?=$fund=\App\Fund::where(['id'=>$r])->get('image')?>"...
如果圖像的路線(xiàn)很好,它應(yīng)該可以工作。如果您在此之后有任何其他問(wèn)題,請(qǐng)告訴我:)
- 2 回答
- 0 關(guān)注
- 143 瀏覽
添加回答
舉報(bào)