Is solution for this in Eloquent ORM?
I have array with parents idetifiers:
Array ( [0] => 87, [1] => 65, ... )
And i want select table PRODUCTS where parent_id column = any id in array
Fluent:
DB::table('PRODUCTS')->whereIn('parent_id', $parent_ids)->get();
Eloquent:
Product::whereIn('parent_id', $parent_ids)->get();
2.1m questions
2.1m answers
60 comments
57.0k users