我有一个多选下拉菜单,它从数据库中获取记录作为选项,所以我需要获取所选记录的 id 列表
<div class="field">
<label>Mailer</label>
<div class="ui fluid multiple search selection dropdown">
<i class="dropdown icon"></i>
<div class="default text">Select Mailer</div>
<div class="menu">
@php
use App\Mailers;
$mailers=Mailers::all();
@endphp
@foreach ($mailers as $mailer)
<div class="item">{{ $mailer->fname }}</div>
@endforeach
</div>
</div>
</div>
慕娘9325324