|
1 | 1 |  |
2 | | -# Pagination Merge for Laravel 5/6/7/8/9 |
| 2 | +# Pagination Merge for Laravel 5/6/7/8/9/10 |
3 | 3 |
|
4 | 4 | [](https://packagist.org/packages/aneeskhan47/laravel-pagination-merge) |
5 | 5 | [](https://packagist.org/packages/aneeskhan47/laravel-pagination-merge) |
6 | 6 | [](https://github.com/aneeskhan47/laravel-pagination-merge/actions?query=workflow%3Arun-tests+branch%3Amain) |
7 | 7 | [](https://github.com/aneeskhan47/laravel-pagination-merge/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain) |
8 | 8 |
|
9 | | -A simple laravel pagination merge package that allows you to merge multiple `->paginate()` instances. |
| 9 | +A simple Laravel pagination merge package that allows you to merge multiple `->paginate()` instances. |
10 | 10 |
|
11 | 11 | ### Some Background |
12 | 12 |
|
13 | | -I had to deal with something like that in a project i was working on, where in one of the pages i had to display two type of publication paginated and sorted by the created_at field. In my case it was a **Post** model and an **Event** Model (hereinafter referred to as publications). |
| 13 | +I had to deal with something like that in a project I was working on, where in one of the pages I had to display two types of publication paginated and sorted by the created_at field. In my case, it was a **Post** model and an **Event** Model (hereinafter referred to as publications). |
14 | 14 |
|
15 | | -The only difference is i didn't want to get all the publications from database then merge and sort the results, as you can imagine it would rise a performance issue if we have hundreds of publications. |
| 15 | +The only difference is I didn't want to get all the publications from the database and then merge and sort the results, as you can imagine it would rise a performance issue if we have hundreds of publications. |
16 | 16 |
|
17 | | -So i figure out that it would be more convenient to paginate each model and only then, merge and sort them. that's why i built this package. |
| 17 | +So I figure out that it would be more convenient to paginate each model and only then, merge and sort them. that's why I built this package. |
18 | 18 |
|
19 | 19 | This package is heavily inspired by this stackoverflow [answer](https://stackoverflow.com/a/58252907) |
20 | 20 |
|
@@ -103,15 +103,15 @@ composer test |
103 | 103 |
|
104 | 104 | ### Changelog |
105 | 105 |
|
106 | | -Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. |
| 106 | +Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. |
107 | 107 |
|
108 | 108 | ## Contributing |
109 | 109 |
|
110 | 110 | Please see [CONTRIBUTING](CONTRIBUTING.md) for details. |
111 | 111 |
|
112 | 112 | ### Security |
113 | 113 |
|
114 | | -If you discover any security related issues, please email [email protected] instead of using the issue tracker. |
| 114 | +If you discover any security -related issues, please email [email protected] instead of using the issue tracker. |
115 | 115 |
|
116 | 116 | ## Credits |
117 | 117 |
|
|
0 commit comments