Just for the posterity… other way you can do this is:
Article::with('category')->whereIn('id', $ids)->get();
This should be faster because it’s leaving the query to the database manager
Just for the posterity… other way you can do this is:
Article::with('category')->whereIn('id', $ids)->get();
This should be faster because it’s leaving the query to the database manager