【发布时间】:2019-11-06 04:58:19
【问题描述】:
我正在为这个查询寻找 laravel 方式:
select * from `table`
where (product_id, request_id) NOT IN ((66, 10),(76,23))
可能是这样的:
$ids = =array(
['66', '10'],
['76', '23']
)
DB::table('table')->whereNotInMultiple(['product_id', 'request_id'], $ids)->get();
我如何在 laravel 中做到这一点?
【问题讨论】:
标签: php laravel eloquent where-in