You have several options to use multiple 'where';
Chain
$members = Member::where('col1', '=', 1)->where('col2', '=', 2)->where('col3', '=', 3)->get();
Multiple calls
$query = Member::where('col1', '=', 1);
$query->where('col2', '=', 2);
$query->where('col3', '=', 3);
$members = $query->get();
Array
$members = Member::where(['col1' => 1, 'col2' => 2, 'col3' => 3])->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community