laravel pluck的使用

        $productItem = StandardProductItemModel::query()
            ->whereIn('sku_id', $skuIdArr)
            ->where('status', '>', '-1')
            ->pluck('product_item_id')->toArray();
原文地址:https://www.cnblogs.com/cjjjj/p/12402421.html