Answer the question
In order to leave comments, you need to log in
Or Where in lavel?
How to query with OR.
We have an ID array, there can be a lot of IDs in the array. Array like: $prop[$i] = array('id', '=', $n);
And I need to select all fields where id == $n or id == $n1 etc.
Thank you!
Answer the question
In order to leave comments, you need to log in
$results = DB::table('table_name')
->whereIn('id', [$i1, $i2, ..., $in])
->get();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question