- Laravel Version: 6.2
- PHP Version: 7.2
- Laravel-admin: 1.7
$this->select('shop_id', __('wbq.shop_name'))->options(function ($id) {
$shop= Shop::find($id);
if ($shop) {
return [$shop->id => $shop->shop_name];
}
})->ajax('/api/shops')
在Form表单中是正常的,$form->select...
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…