- where a and (b or c)
$abc = Apps::where('id',1)->where(
function($q){
$q->where('name','ss')->orWhereIn('type', [1, 2]);
})->first();
$abc = Apps::where('id',1)->where(
function($q){
$q->where('name','ss')->orWhereIn('type', [1, 2]);
})->first();
本文标题:eloquent复合条件
本文链接:https://www.haomeiwen.com/subject/txqvixtx.html
网友评论