Level 41
No, you can just preface any where method with 'or', these are built in methods.
For situations like this I prefer using whereRaw.
Can I use eloquent like this:
$query->where($field, $value)->orWhereIsNull($field)->orWhereNotIn($field, $array)->get();
?
Basically can I preface any advance where function with 'or' and will it still work?
Yes, they do exists and you can use them with Eloquent too.
Please or to participate in this conversation.