Closed ognjenm closed 9 years ago
$things = Stuff:with('things')->get();
$things->addToIndex()
Do keep in mind that when you aply a search it will return the related data in array form (not as a model collection)
Thanks, @yswery - I didn't even think of doing this - that works nicely even though you are correct it's just going to return the array and not the full model.
How to index with eager loaded data?