我如何添加IN
laravel 中的背包条款?
这就是我正在寻找的:
$this->crud->addClause('where', 'customer_id', 'in', [1,3,5,6,7]);`
应该翻译成这样:
select * from customer where customer_id in (1,3,5,6,7);
只需使用whereIn
代替where
, backpack-for-laravel
已准备好:
$this->crud->addClause('whereIn', 'customer_id', [1,3,5,6,7]);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)