首页 > 技术文章 > laravel pluck的使用

cjjjj 2020-03-03 15:05 原文

        $productItem = StandardProductItemModel::query()
            ->whereIn('sku_id', $skuIdArr)
            ->where('status', '>', '-1')
            ->pluck('product_item_id')->toArray();

 

推荐阅读