orWhere
Quickly complete conditional statement construction
The following two methods are equivalent
$builder->where('is_vip', 1)->where('id', [1,2], '=', 'OR')->get('getTable');
$builder->where('is_vip', 1)->orWhere('id', [1,2])->get('getTable');
Pass the instructions
Method prototype
function orWhere($whereProp, $whereValue = 'DBNULL', $operator = '=')
- $whereProp string Support indexed arrays, kv arrays, or directly passed strings
- $whereValue stringConditional value
- $operator string Operator