0
是否有可能在使用hte whereNotIn過濾器選項時生成列表(對於選擇項目)。 我想:如何使用列表函數而不使用數組過濾器?
$sizes = Size::lists('name', 'id')->whereNotIn('id', [1,3])->get();;
,但我得到以下錯誤:
Call to undefined method Illuminate\Support\Collection::whereNotIn()
我應該如何過濾這些列表的選項?