New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

krossroad/laravel-union-paginator

Package to support pagination in union queries in Laravel Eloquent.
112,262 19

Larablocks Analysis

krossroad/laravel-union-paginator works with Laravel 5 (latest release v5.5.5, Oct 2, 2018), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Oct 2, 2018)
  • 605 downloads a month (needs 10,000)
  • 19 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Oct 2, 2018.
  • No releases in the last 12 months.
  • First released: Sep 23, 2017.
  • Monthly downloads: 605, up 16% from six months ago.
  • 2 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require krossroad/laravel-union-paginator
Latest Version:v5.5.5
Laravel:5
License:MIT
Last Updated:Feb 20, 2023
Links: GitHub  ·  Packagist
Maintainer: krossroad

Laravel Union Paginator

Latest Stable Version Total Downloads License

Note

Laravel supports union pagination from v5.7

Installation

For Laravel v5.5 to v5.7

composer require 'krossroad/laravel-union-paginator:5.5'

For Laravel v5.2 to v5.4

composer require 'krossroad/laravel-union-paginator:5.4'

Usage

Just use UnionPaginatorTrait in your model and you are good to go.

Example Model
<?php
/**
 * @filename {project}/App/Models/User.php
 */

namespace \App\Models\User;

use Krossroad\UnionPaginator\UnionPaginatorTrait;

class User extends Model
{
    use UnionPaginatorTrait;
    ...
}

Example usage somewhere in application code

->unionPaginate() --> returns \Illuminate\Pagination\LengthAwarePaginator instance

$first = User::whereNull('first_name');

$pagination = User::whereNull('last_name')
    ->union($first)
    ->unionPaginate(
        $perPage,
        $columns,
        $pageName = 'page',
        $page
    );
    

If you find any bug, issue or have queries. Please create a new issue

Related Packages

presentation/laravel

Laravel 4 & 5 Presentation Framework Integration

24 4
intentor/laravel-form

Form helpers for Laravel 5.

889 10
developer-tz/simple-captcha

Simple Captcha Service Provider for laravel 5

617 19
view-components/eloquent-data-processing

Eloquent ORM support for ViewComponents

135,963 17
danielme85/laravel-cconverter

Laravel 5 plug-in for currency conversion

104,724 42

Version History

Version Released Laravel License
v5.5.5 ^5.5 MIT
v5.5.4 ^5.5 MIT
v5.5.3 ^5.5
v5.5.2 ^5.5
v5.5.1 ^5.5