[Laravel Eloquent] Search the database using multiple models/tables: Pagination, scopes and sorting

Опубликовано: 03 Март 2025
на канале: Pascal Baljet
11,499
227

0:10 Intro
1:23 Demo app walk-through
13:44 Implementation of the package
28:15 Failed refactor
29:30 Recap

✅ Search through one or more Eloquent models.
✅ Support for cross-model pagination.
✅ Search through single or multiple columns.
✅ Use constraints and scoped queries.
✅ Eager load relationships for each model.
✅ In-database sorting of the combined result.

➡️ Sponsor page: https://github.com/sponsors/pascalbaljet
➡️ GitHub repo: https://github.com/protonemedia/larav...
➡️ Blog post: https://protone.media/en/blog/search-...
➡️ Twitter:   / pascalbaljet