下面这篇文章How to create multiple where clause query using Laravel Eloquent?Laravel收集多个where条件
我想插入多个 '和' 条件:
$matchThese = ['destination.country' => 'china', 'doc.description' => 'business'];
return $collection->where($matchThese);
但我收到此错误:
Too few arguments to function Illuminate\Support\Collection::where(), 1 passed . . . but two expected
那里需要两个参数,你也许可以做这样的事情回报$收藏 - >在哪里($ matchThese [0],$ matchThese [1]); – utdev