MiguelStevens's avatar

Search Package that includes multiple models, related models and pagination?

There doesn't seem to be a perfect solution out there for now, Spatie/Searchable doesn't have pagination, Scout doesn't allow looking into related models using the MySQL driver.

What do you use? Is there any good solution (using mysql?)

0 likes
3 replies
MiguelStevens's avatar

That is paginating a collection, using a macro, that means if there's 2000 records in the database, it will return 2000 records, without pagination.. Only to paginate on the collection afterwards, which has zero performance benefits, it's only masking the issue.

Please or to participate in this conversation.