I have an array like this
$products = [350, 410, 362, 256, 193]
I have used this array to get results like this:
$searchResults = ProductSearch::whereIn('product_id', $products)->get();
In this result, I am not getting product with id 350 on first element in the result collection. Is there any way to achieve such result using ORM ?