I want to add an "AND" clause to the end of a query builder, the code looks like this:
$orderers = DB::table('address')->where(function($query) use ($term) {
$query->where('id', 'LIKE', '%' . $term . '%')
->or_where('name', 'LIKE', '%' . $term . '%')
->or_where('status', 'LIKE', '%' . $term . '%')
->and_clause_goes_here('is_orderer', '=', '1');
})->paginate($per_page);
But searching for a AND clause in Laravel I couldn't find any of equivalent. Could you help me with this problem?
orWhere
notor_where
. It caused an error in laravel 5.5. – Overexcite