Laravel 4 Eloquent ORM select where - array as parameter
eloquent, laravel, laravel-4
Solution
Fluent:
DB::table('PRODUCTS')->whereIn('parent_id', $parent_ids)->get();
Eloquent:
Product::whereIn('parent_id', $parent_ids)->get();
Problem
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