Hello, is there a way to use orWhereIn in collection. Method Illuminate\Database\Eloquent\Collection::orWhereIn does not exist.
Since I have two two columns with _id and need to get data from both of them
->whereIn('fighter1_id', $following)
Using whereIn works, but if I try to add another column ->whereIn('fighter2_id', $following) then it combines them and not show all results.
I need to something like this
->whereIn('fighter1_id', $following)
->orWhereIn('fighter2_id', $following)
@krisi_gjika It gives me: App\Http\Controllers\FollowController::App\Http\Controllers{closure}(): Argument #1 ($query) must be of type App\Http\Controllers\Builder, Illuminate\Database\Eloquent\Builder given
on this line
->where(function (Builder $query) use ($following) {