r/laravel•
one_p

Laravel Scout: how implement site wide search amongst multiple models?

Loving Laravel Scout so far but it seems that the package is only limited to indexing one model. Is there a clean way to do search that uses multiple models? Right now I can hack together a "god" model that contains all the text for every table in my database. It's a dirty solution though, I'd love to see better suggestions.

Posted Mar 30, 2017, 4:28 AM UTC

56
Loading comments…