PHPackages                             mayoz/pagination - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mayoz/pagination

ActiveLibrary

mayoz/pagination
================

Beautiful urls for Laravel pagination

10973PHP

Since Nov 6Pushed 10y ago1 watchersCompare

[ Source](https://github.com/mayoz/pagination)[ Packagist](https://packagist.org/packages/mayoz/pagination)[ RSS](/packages/mayoz-pagination/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Pagination
==================

[](#laravel-pagination)

Create beautiful and SEO friendly links for pagination.

---

Installation and Requirements
-----------------------------

[](#installation-and-requirements)

First, you'll need to add the package to the require attribute of your composer.json file:

```
{
    "require": {
        "mayoz/pagination": "dev-master"
    },
}
```

Afterwards, run `composer update` from your command line. And finaly, open `config/app.php`. Find `'Illuminate\Pagination\PaginationServiceProvider'` and replace with `'Mayoz\Pagination\PaginationServiceProvider'` in providers array.

Using
-----

[](#using)

This is very easy. Consider the following examples. I accept to have your model. Create route, controller and view.

### Route

[](#route)

Define route in `app\Http\routes`;

```
