austinw/laravel-union-paginator
Laravel Union Paginator lets you paginate the combined results of multiple Eloquent queries as a single dataset. Merge different models or filtered queries with UNION, keep consistent ordering and page sizes, and return a standard Laravel paginator for Blade or API output.
Laravel Union Paginator makes it easy to paginate UNION queries in Laravel without manually wrapping subqueries or calculating totals. It provides a paginator tailored for combined query results, so you can keep using Laravel’s familiar pagination APIs while working with complex UNION and UNION ALL statements.
How can I help you explore Laravel packages today?